category list didn't display right
This commit is contained in:
parent
b35887d58a
commit
451ca603c2
2 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<h1>Categories</h1>
|
<h1>Categories</h1>
|
||||||
|
<p>
|
||||||
{% if terms %}
|
{% if terms %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for term in terms %}
|
{% for term in terms %}
|
||||||
|
@ -12,5 +12,6 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</p>
|
||||||
</main>
|
</main>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h1>Posts in category "{{ term.name }}"</h1>
|
<h1>Posts in category "{{ term.name }}"</h1>
|
||||||
<p>
|
|
||||||
{% for page in term.pages %}
|
{% for page in term.pages %}
|
||||||
|
<p>
|
||||||
<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
|
<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
|
||||||
{% endfor %}
|
|
||||||
</p>
|
</p>
|
||||||
|
{% endfor %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Reference in a new issue