The old Pelican theme I used to use for mcol.xyz
git clone https://mcol.xyz/code/rice-theme
Log | Files | Refs | README

commit f547df5593e40e863e682489f38a2cead1d4185c
parent e6c39280a669b5b1bcb979210c75ca8f778a40bd
Author: mcol <mcol@posteo.net>
Date:   Thu, 30 Jul 2020 23:14:46 +0100

remove section block from article

Diffstat:
Mtemplates/article.html | 42+++++++++++++++++++-----------------------
1 file changed, 19 insertions(+), 23 deletions(-)

diff --git a/templates/article.html b/templates/article.html @@ -9,33 +9,29 @@ {% endblock %} {% block content %} -<section id="content"> +<header> + <h2> + <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a> + </h2> +</header> - <header> - <h2> - <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a> - </h2> - </header> +<footer class="post-info"> - <footer class="post-info"> + <time class="published" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> - <time class="published" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> + {% if article.modified %} + <time class="modified" datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time> + {% endif %} - {% if article.modified %} - <time class="modified" datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time> - {% endif %} - - {% if article.category %} - <div class="category"> - Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> - </div> - {% endif %} - - </footer> - - <div class="entry-content"> - {{ article.content }} + {% if article.category %} + <div class="category"> + Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> </div> + {% endif %} + +</footer> -</section> +<div class="entry-content"> + {{ article.content }} +</div> {% endblock %}