Hide footer tags link if no tags exist
Hide meta description if DESCRIPTION is undefined Minor improvementsmain
parent
d7b535dc95
commit
bfb5895c63
|
@ -71,6 +71,7 @@ blockquote {
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
|
@ -102,12 +103,12 @@ blockquote {
|
||||||
|
|
||||||
.header p {
|
.header p {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
margin: 20px 0;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header ul {
|
.header ul {
|
||||||
font-family: Montserrat, 'Helvetica Neue', sans-serif;
|
font-family: Montserrat, 'Helvetica Neue', sans-serif;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header li {
|
.header li {
|
||||||
|
|
|
@ -118,11 +118,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||||
<li><a href="{{ SITEURL }}/categories.html">Categories</a></li>
|
<li><a href="{{ SITEURL }}/categories.html">Categories</a></li>
|
||||||
|
{% if tags|length %}
|
||||||
<li><a href="{{ SITEURL }}/tags.html">Tags</a></li>
|
<li><a href="{{ SITEURL }}/tags.html">Tags</a></li>
|
||||||
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 hidden-xs text-right text-muted">
|
<div class="col-sm-6 hidden-xs text-right text-muted">
|
||||||
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a> using <a href="https://github.com/nairobilug/pelican-alchemy">✨ alchemy</a>
|
Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a> using <a href="https://github.com/nairobilug/pelican-alchemy" target="_blank">✨ alchemy</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
i[r] = i[r] || function() {
|
i[r] = i[r] || function() {
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
}, i[r].l = 1 * new Date();
|
}, i[r].l = 1 * new Date();
|
||||||
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
|
a = s.createElement(o);
|
||||||
a.async = 1;
|
a.async = 1;
|
||||||
a.src = g;
|
a.src = g;
|
||||||
|
m = s.getElementsByTagName(o)[0];
|
||||||
m.parentNode.insertBefore(a, m)
|
m.parentNode.insertBefore(a, m)
|
||||||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||||
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
|
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
|
||||||
|
|
|
@ -2,12 +2,13 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div id="disqus_thread"></div>
|
<div id="disqus_thread"></div>
|
||||||
<script>
|
<script>
|
||||||
var disqus_config = function () {
|
var disqus_config = function() {
|
||||||
this.page.url = '{{ SITEURL }}/{{ output_file }}';
|
this.page.url = '{{ SITEURL }}/{{ output_file }}';
|
||||||
this.page.identifier = '{{ article.slug }}';
|
this.page.identifier = '{{ article.slug }}';
|
||||||
};
|
};
|
||||||
(function() {
|
(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.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
|
||||||
s.setAttribute('data-timestamp', +new Date());
|
s.setAttribute('data-timestamp', +new Date());
|
||||||
(d.head || d.body).appendChild(s);
|
(d.head || d.body).appendChild(s);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% if DEFAULT_PAGINATION %}
|
{% if articles_paginator.num_pages > 1 %}
|
||||||
<hr>
|
<hr>
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
{% if articles_page.has_previous() %}
|
{% if articles_page.has_previous() %}
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
{% if DESCRIPTION %}
|
||||||
<meta name="description" content="{{ DESCRIPTION|striptags }}">
|
<meta name="description" content="{{ DESCRIPTION|striptags }}">
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
|
|
Loading…
Reference in New Issue