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