diff options
author | Pierre Equoy <pierre.equoy@protonmail.com> | 2022-01-17 16:06:39 +0800 |
---|---|---|
committer | Pierre Equoy <pierre.equoy@protonmail.com> | 2022-01-17 16:21:44 +0800 |
commit | fe4f1ec4eada14b4da42a48b15c83082c112306d (patch) | |
tree | 56bf3106b52f69b2461ac08ed7b20cbfdbb4d5ae | |
parent | 0384c9bc071dd82b9dbe29fb73521587311bfc84 (diff) | |
download | pelican-fe4f1ec4eada14b4da42a48b15c83082c112306d.tar.gz |
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`.
-rw-r--r-- | pelican/themes/simple/templates/article.html | 4 | ||||
-rw-r--r-- | pelican/themes/simple/templates/author.html | 2 | ||||
-rw-r--r-- | pelican/themes/simple/templates/category.html | 2 | ||||
-rw-r--r-- | pelican/themes/simple/templates/tag.html | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html index c8c9a4f7..f85c7410 100644 --- a/pelican/themes/simple/templates/article.html +++ b/pelican/themes/simple/templates/article.html @@ -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> diff --git a/pelican/themes/simple/templates/author.html b/pelican/themes/simple/templates/author.html index a1901946..79d22c7d 100644 --- a/pelican/themes/simple/templates/author.html +++ b/pelican/themes/simple/templates/author.html @@ -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 %} diff --git a/pelican/themes/simple/templates/category.html b/pelican/themes/simple/templates/category.html index 14d7ff09..d73f6e31 100644 --- a/pelican/themes/simple/templates/category.html +++ b/pelican/themes/simple/templates/category.html @@ -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 %} diff --git a/pelican/themes/simple/templates/tag.html b/pelican/themes/simple/templates/tag.html index 9c958030..93878134 100644 --- a/pelican/themes/simple/templates/tag.html +++ b/pelican/themes/simple/templates/tag.html @@ -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 %} |