List all posts from given category
This commit is contained in:
parent
194fcc5b92
commit
ae22681f18
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user