Include category links on category pages.

This commit is contained in:
Anna Rose 2016-05-23 11:16:49 -04:00
parent e7c33958b7
commit dd744af428
3 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1,9 @@
<div class="category-menu">
{% for category in site.category_metadata %}
<span class="category-link">
<a href="/{{category.first}}">
{{ category.last["title"] }}
</a>
</span>
{% endfor %}
</div>

View File

@ -2,7 +2,8 @@
layout: default
---
<article class="post">
{% include category_menu_top.html %}
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>

View File

@ -2,15 +2,7 @@
layout: default
---
<div class="home">
<div class="category-menu">
{% for category in site.category_metadata %}
<span class="category-link">
<a href="{{category.first | prepend: site.baseurl}}">
{{ category.last["title"] }}
</a>
</span>
{% endfor %}
</div>
{% include category_menu_top.html %}
{% assign last_meta = site.categories.meta.first %}
{% if last_meta.active %}