Category fine-tuning

This commit is contained in:
Holger Reinhardt 2016-01-04 22:06:34 +01:00
parent 017a46856d
commit 0e39c749bf
4 changed files with 3 additions and 8 deletions

View file

@ -1,19 +1,14 @@
- slug: general - slug: general
name: General name: General
color: '#3498db'
- slug: conference - slug: conference
name: Conference name: Conference
color: '#1abc9c'
- slug: howto - slug: howto
name: Howto name: Howto
color: '#1abc9c'
- slug: api - slug: api
name: API name: API
color: '#1abc9c'
- slug: product - slug: product
name: Product name: Product
color: '#1abc9c'

View file

@ -15,7 +15,7 @@ layout: default
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if category %} {% if category %}
{% capture category_content %} in <span class="label" style="background-color:{{ category.color }}"><a href="/meta/category/{{ category.slug }}/">{{ category.name }}</a></span>{% endcapture %} {% capture category_content %} in <a href="/meta/category/{{ category.slug }}/">{{ category.name }}</a>{% endcapture %}
{% endif %} {% endif %}
{% else %} {% else %}
{% assign category_content = '' %} {% assign category_content = '' %}

View file

@ -3,7 +3,7 @@ layout: default
--- ---
<article class="page"> <article class="page">
<h1>{{site.data.categories[page.category].name}}</h1> <h1>{{page.title}}</h1>
<p class='info'> <p class='info'>
<span>Articles by category</span> <span>Articles by category</span>

View file

@ -1,6 +1,6 @@
--- ---
layout: post_by_category layout: post_by_category
title: 'Articles by category: general' title: General
category: general category: general
permalink: /meta/category/general/ permalink: /meta/category/general/
--- ---