Category fine-tuning
This commit is contained in:
parent
017a46856d
commit
0e39c749bf
|
@ -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'
|
||||
|
|
|
@ -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 = '' %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: post_by_category
|
||||
title: 'Articles by category: general'
|
||||
title: General
|
||||
category: general
|
||||
permalink: /meta/category/general/
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue