List all posts from given category
This commit is contained in:
		@@ -1 +1,6 @@
 | 
				
			|||||||
{% extends "index.html" %}
 | 
					{% extends "index.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% block content %}
 | 
				
			||||||
 | 
						<h1>{{ term.name }} category</h1>
 | 
				
			||||||
 | 
						{{ macros::list_posts(section=term, taxonomy=true) }}
 | 
				
			||||||
 | 
					{% endblock %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,7 @@
 | 
				
			|||||||
{% macro list_posts(section, count=0) %}
 | 
					{% macro list_posts(section, count=0, taxonomy=false) %}
 | 
				
			||||||
	{% set section = get_section(path=section~"/_index.md") %}
 | 
						{% if taxonomy == false %}
 | 
				
			||||||
 | 
							{% set section = get_section(path=section~"/_index.md") %}
 | 
				
			||||||
 | 
						{% endif %}
 | 
				
			||||||
	{% for page in section.pages %}
 | 
						{% for page in section.pages %}
 | 
				
			||||||
		{% if loop.index > count and count != 0 %}
 | 
							{% if loop.index > count and count != 0 %}
 | 
				
			||||||
			{% break %}
 | 
								{% break %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user