From 0e39c749bff75f6985999342100ef9a34aad5787 Mon Sep 17 00:00:00 2001 From: Holger Reinhardt Date: Mon, 4 Jan 2016 22:06:34 +0100 Subject: [PATCH] Category fine-tuning --- _data/categories.yml | 5 ----- _layouts/post.html | 2 +- _layouts/post_by_category.html | 2 +- meta/category/general.md | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/_data/categories.yml b/_data/categories.yml index fa63c9a..9efe06e 100644 --- a/_data/categories.yml +++ b/_data/categories.yml @@ -1,19 +1,14 @@ - slug: general name: General - color: '#3498db' - slug: conference name: Conference - color: '#1abc9c' - slug: howto name: Howto - color: '#1abc9c' - slug: api name: API - color: '#1abc9c' - slug: product name: Product - color: '#1abc9c' diff --git a/_layouts/post.html b/_layouts/post.html index d6e25bf..5de6c54 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -15,7 +15,7 @@ layout: default {% endif %} {% endfor %} {% if category %} - {% capture category_content %} in {{ category.name }}{% endcapture %} + {% capture category_content %} in {{ category.name }}{% endcapture %} {% endif %} {% else %} {% assign category_content = '' %} diff --git a/_layouts/post_by_category.html b/_layouts/post_by_category.html index 5ea5564..fe4dbae 100644 --- a/_layouts/post_by_category.html +++ b/_layouts/post_by_category.html @@ -3,7 +3,7 @@ layout: default ---
-

{{site.data.categories[page.category].name}}

+

{{page.title}}

Articles by category diff --git a/meta/category/general.md b/meta/category/general.md index 8750916..053e765 100644 --- a/meta/category/general.md +++ b/meta/category/general.md @@ -1,6 +1,6 @@ --- layout: post_by_category -title: 'Articles by category: general' +title: General category: general permalink: /meta/category/general/ ---