Another go at tags and category; adding spacer to comment section
This commit is contained in:
		
							parent
							
								
									4fe871f5c1
								
							
						
					
					
						commit
						4722fd063b
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -6,9 +6,9 @@ layout: default
 | 
				
			||||||
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
 | 
					<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- category link -->
 | 
					    <!-- category link -->
 | 
				
			||||||
    {% if post.category %}
 | 
					    {% if page.category %}
 | 
				
			||||||
      {% for site_category in site.data.categories %}
 | 
					      {% for site_category in site.data.categories %}
 | 
				
			||||||
        {% if site_category.slug == post.category %}
 | 
					        {% if site_category.slug == page.category %}
 | 
				
			||||||
          {% assign category = site_category %}
 | 
					          {% assign category = site_category %}
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
      {% endfor %}
 | 
					      {% endfor %}
 | 
				
			||||||
| 
						 | 
					@ -20,9 +20,9 @@ layout: default
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <!-- tag links -->
 | 
					    <!-- tag links -->
 | 
				
			||||||
    {% if post.tags.size > 0 %}
 | 
					    {% if page.tags.size > 0 %}
 | 
				
			||||||
      {% capture tags_content %} with tags {% endcapture %}
 | 
					      {% capture tags_content %} with tags {% endcapture %}
 | 
				
			||||||
      {% for post_tag in post.tags %}
 | 
					      {% for post_tag in page.tags %}
 | 
				
			||||||
          {% for data_tag in site.data.tags %}
 | 
					          {% for data_tag in site.data.tags %}
 | 
				
			||||||
            {% if data_tag.slug == post_tag %}
 | 
					            {% if data_tag.slug == post_tag %}
 | 
				
			||||||
              {% assign tag = data_tag %}
 | 
					              {% assign tag = data_tag %}
 | 
				
			||||||
| 
						 | 
					@ -75,6 +75,8 @@ layout: default
 | 
				
			||||||
                    {% endif %}
 | 
					                    {% endif %}
 | 
				
			||||||
                </ul>
 | 
					                </ul>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <hr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                {% include disqus.html %}
 | 
					                {% include disqus.html %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue