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>
|
||||
|
||||
<h1>Categories</h1>
|
||||
|
||||
<p>
|
||||
{% if terms %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
|
@ -12,5 +12,6 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</p>
|
||||
</main>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{% block content %}
|
||||
|
||||
<h1>Posts in category "{{ term.name }}"</h1>
|
||||
<p>
|
||||
{% for page in term.pages %}
|
||||
<p>
|
||||
<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
||||
|
|
Reference in a new issue