Another go at tags and category; adding spacer to comment section

This commit is contained in:
Holger Reinhardt 2016-01-30 23:08:14 +01:00
parent 4fe871f5c1
commit 4722fd063b
1 changed files with 6 additions and 4 deletions

View File

@ -6,9 +6,9 @@ layout: default
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
<!-- category link -->
{% if post.category %}
{% if page.category %}
{% for site_category in site.data.categories %}
{% if site_category.slug == post.category %}
{% if site_category.slug == page.category %}
{% assign category = site_category %}
{% endif %}
{% endfor %}
@ -20,9 +20,9 @@ layout: default
{% endif %}
<!-- tag links -->
{% if post.tags.size > 0 %}
{% if page.tags.size > 0 %}
{% capture tags_content %} with tags {% endcapture %}
{% for post_tag in post.tags %}
{% for post_tag in page.tags %}
{% for data_tag in site.data.tags %}
{% if data_tag.slug == post_tag %}
{% assign tag = data_tag %}
@ -75,6 +75,8 @@ layout: default
{% endif %}
</ul>
<hr>
{% include disqus.html %}
</div>