mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Hide footer tags link if no tags exist
Hide meta description if DESCRIPTION is undefined Minor improvements
This commit is contained in:
parent
d7b535dc95
commit
bfb5895c63
6 changed files with 14 additions and 7 deletions
|
|
@ -5,9 +5,10 @@
|
|||
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 = s.createElement(o);
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
|
||||
|
|
|
|||
|
|
@ -2,12 +2,13 @@
|
|||
<hr>
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
var disqus_config = function () {
|
||||
var disqus_config = function() {
|
||||
this.page.url = '{{ SITEURL }}/{{ output_file }}';
|
||||
this.page.identifier = '{{ article.slug }}';
|
||||
};
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
var d = document;
|
||||
var s = d.createElement('script');
|
||||
s.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% if DEFAULT_PAGINATION %}
|
||||
{% if articles_paginator.num_pages > 1 %}
|
||||
<hr>
|
||||
<ul class="pagination">
|
||||
{% if articles_page.has_previous() %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue