1
0
Fork 0
forked from github/pelican

Uniformize headers in simple theme

In the simple theme, some templates are using `h1`, others are using
`h2` for the main title of the page (other than the one in the header).
This commit changes that so all of the pages are using `h1`.
This commit is contained in:
Pierre Equoy 2022-01-17 16:06:39 +08:00
commit fe4f1ec4ea
4 changed files with 5 additions and 5 deletions

View file

@ -24,9 +24,9 @@
{% block content %}
<section id="content" class="body">
<header>
<h2 class="entry-title">
<h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</header>

View file

@ -3,6 +3,6 @@
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
{% block content_title %}
<h2>Articles by {{ author }}</h2>
<h1>Articles by {{ author }}</h1>
{% endblock %}

View file

@ -3,6 +3,6 @@
{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
{% block content_title %}
<h2>Articles in the {{ category }} category</h2>
<h1>Articles in the {{ category }} category</h1>
{% endblock %}

View file

@ -3,5 +3,5 @@
{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %}
{% block content_title %}
<h2>Articles tagged with {{ tag }}</h2>
<h1>Articles tagged with {{ tag }}</h1>
{% endblock %}