Category fine-tuning
This commit is contained in:
		
							parent
							
								
									017a46856d
								
							
						
					
					
						commit
						0e39c749bf
					
				
					 4 changed files with 3 additions and 8 deletions
				
			
		| 
						 | 
					@ -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'
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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 = '' %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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/
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue