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.
master
Andrew Senetar 11 years ago
parent b03fd560b6
commit f2cc7ba260

@ -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 %}

@ -2,7 +2,6 @@
<div class="large-9 columns">
<div id="disqus_thread"></div><!--
<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_identifier = '{{ article.title }}_{{ article.date.isoformat() }}';
var disqus_title = '{{ article.title }}';
@ -18,4 +17,4 @@
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</section>
</section>

@ -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>

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

@ -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 %}

@ -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>

@ -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);
})();

@ -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>
Loading…
Cancel
Save