mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes some issues with the category handling.
This commit is contained in:
parent
4abbe06b7c
commit
bd007138fa
3 changed files with 20 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for category in categories %}
|
||||
{% for category, articles in categories %}
|
||||
<li>{{ category }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
Articles in the {{ category }} category.
|
||||
<ul>
|
||||
{% for articles in category %}
|
||||
<li><a href="{{ article.url }}">{{ article.name }}</a></li>
|
||||
{% for article in articles %}
|
||||
<li><a href="../{{ article.url }}">{{ article.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue