1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-11-22 19:29:02 +00:00

Move utility templates to prefix '_', add footer utility templates.

Utility templates moved to have '_' prefix similar to how sass files are.
Aditional templates for article and page footer contents now used to load
comments etc.
This commit is contained in:
Andrew Senetar 2013-07-14 00:55:29 -04:00
parent b03fd560b6
commit f2cc7ba260
8 changed files with 47 additions and 23 deletions

View File

@ -0,0 +1,14 @@
{# Items to include at the bottom of a single article #}
{# PDF links #}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a>
{% endif %}
{# Copyright notice and link #}
{% if COPYRIGHTS and (COPYRIGHT_ARTICLE or article.copyright) %}
<a href="{{ COPYRIGHTS[article.copyright|default(DEFAULT_COPYRIGHT)][1] }}">{{ COPYRIGHTS[article.copyright|default(DEFAULT_COPYRIGHT)][0] }}</a>
{% endif %}
{# Comments #}
{% if ( article.comments == True or ( article.comments is not defined and COMMENTS_ARTICLE == True ) ) and DISQUS_SN %}
{% include '_disqus.html' %}
{% endif %}

View File

@ -2,7 +2,6 @@
<div class="large-9 columns"> <div class="large-9 columns">
<div id="disqus_thread"></div><!-- <div id="disqus_thread"></div><!--
<script type="text/javascript"> <script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ DISQUS_SN }}'; // required: replace example with your forum shortname var disqus_shortname = '{{ DISQUS_SN }}'; // required: replace example with your forum shortname
var disqus_identifier = '{{ article.title }}_{{ article.date.isoformat() }}'; var disqus_identifier = '{{ article.title }}_{{ article.date.isoformat() }}';
var disqus_title = '{{ article.title }}'; var disqus_title = '{{ article.title }}';

View File

@ -0,0 +1,12 @@
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ GOOGLE_ANALYTICS[0] }}', '{{ GOOGLE_ANALYTICS[1] }}');
ga('send', 'pageview');
</script>

View File

@ -1,7 +1,7 @@
<!-- GoSquared Tracking --> <!-- GoSquared Tracking -->
<script type="text/javascript"> <script type="text/javascript">
var GoSquared = {}; var GoSquared = {};
GoSquared.acct = "{{ GS_CODE }}"; // account number GoSquared.acct = "{{ GO_SQUARED }}"; // account number
(function(w){ (function(w){
function gs(){ function gs(){
w._gstc_lt = +new Date; w._gstc_lt = +new Date;

View File

@ -0,0 +1,14 @@
{# Items to include at the bottom of a single page #}
{# PDF links #}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">PDF</a>
{% endif %}
{# Copyright notice and link #}
{% if COPYRIGHTS and (COPYRIGHT_PAGE or page.copyright) %}
<a href="{{ COPYRIGHTS[page.copyright|default(DEFAULT_COPYRIGHT)][1] }}">{{ COPYRIGHTS[page.copyright|default(DEFAULT_COPYRIGHT)][0] }}</a>
{% endif %}
{# Comments #}
{% if ( page.comments == True or ( page.comments is not defined and COMMENTS_PAGE == True ) ) and DISQUS_SN %}
{% include '_disqus.html' %}
{% endif %}

View File

@ -0,0 +1,5 @@
<ul class="social-area">
{% for network, url in SOCIAL %}
<li><a href="{{ url }}"><i class="huge icon-{{ network }}"></i></a></li>
{% endfor %}
</ul>

View File

@ -1,14 +0,0 @@
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ GA_CODE }}']); //account #
_gaq.push(['_setDomainName', '{{ GA_DOMAIN }}']); //subdomains of rangertbc.net
{% if GA_LINKER == True %}
_gaq.push(['_setAllowLinker', true]); // multiple top-level domains true
{% endif %}
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

View File

@ -1,6 +0,0 @@
<ul class="social-area">
<li><a href=""><i class="huge icon-gplus-1"></i></a></li>
<li><a href=""><i class="huge icon-twitter-1"></i></a></li>
<li><a href=""><i class="huge icon-github-circled-2"></i></a></li>
<li><a href=""><i class="huge icon-linkedin"></i></a></li>
</ul>