mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Change a bit the templates to list all the article with their content by
category too.
This commit is contained in:
parent
13148f568f
commit
ecd9a83ac8
3 changed files with 12 additions and 8 deletions
|
|
@ -9,6 +9,11 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="{{ BLOGURL }}">{{ BLOGNAME }} <strong>{{ BLOGSUBTITLE }}</strong></a></h1>
|
||||
</header><!-- /#banner -->
|
||||
{% if categories %}<ul>
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="category/{{category}}.html">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul> {% endif %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<footer id="contentinfo" class="body">
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
Articles in the {{ category }} category.
|
||||
<ul>
|
||||
{% for article in articles %}
|
||||
<li><a href="../{{ article.url }}">{{ article.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% extends "index.html" %}
|
||||
{% block content_title %}
|
||||
<h2>Articles in the {{ category }} category</h2>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section id="content">
|
||||
{% block content_title %}
|
||||
<h2>All articles</h2>
|
||||
{% endblock %}
|
||||
|
||||
<ol id="post-list">
|
||||
{% for article in articles %}
|
||||
<li><article class="hentry">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue