From dd744af428dd1d934d811a93915e6e7feddd970f Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Mon, 23 May 2016 11:16:49 -0400 Subject: [PATCH] Include category links on category pages. --- _includes/category_menu_top.html | 9 +++++++++ _layouts/category_index.html | 3 ++- index.html | 10 +--------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 _includes/category_menu_top.html diff --git a/_includes/category_menu_top.html b/_includes/category_menu_top.html new file mode 100644 index 0000000..f260038 --- /dev/null +++ b/_includes/category_menu_top.html @@ -0,0 +1,9 @@ +
+ {% for category in site.category_metadata %} + + + {{ category.last["title"] }} + + + {% endfor %} +
diff --git a/_layouts/category_index.html b/_layouts/category_index.html index bf83c71..f1056ec 100644 --- a/_layouts/category_index.html +++ b/_layouts/category_index.html @@ -2,7 +2,8 @@ layout: default ---
- + {% include category_menu_top.html %} +

{{ page.title }}

diff --git a/index.html b/index.html index 672f9c7..2bfe796 100644 --- a/index.html +++ b/index.html @@ -2,15 +2,7 @@ layout: default ---
-
- {% for category in site.category_metadata %} - - - {{ category.last["title"] }} - - - {% endfor %} -
+ {% include category_menu_top.html %} {% assign last_meta = site.categories.meta.first %} {% if last_meta.active %}