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
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'

View file

@ -15,7 +15,7 @@ layout: default
{% endif %}
{% endfor %}
{% 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 %}
{% else %}
{% assign category_content = '' %}

View file

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

View file

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