diff options
author | Justin Mayer <entroP@gmail.com> | 2022-08-04 15:08:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 15:08:09 +0200 |
commit | e265deb094161d416ba33bb8c53927abd56db6e4 (patch) | |
tree | ecf61c694dbb2af28144697d72660799c043dcd9 | |
parent | 73c0320f62de2c74b19e9bd4789b10b0ea07ecb7 (diff) | |
parent | 16b8a03ad92c32788cb4ceb2d8d4e0a6f670c0a1 (diff) | |
download | pelican-e265deb094161d416ba33bb8c53927abd56db6e4.tar.gz |
Merge pull request #2976 from pieqq/simple-theme-fixes
-rw-r--r-- | pelican/themes/simple/templates/article.html | 10 | ||||
-rw-r--r-- | pelican/themes/simple/templates/author.html | 2 | ||||
-rw-r--r-- | pelican/themes/simple/templates/base.html | 17 | ||||
-rw-r--r-- | pelican/themes/simple/templates/category.html | 2 | ||||
-rw-r--r-- | pelican/themes/simple/templates/tag.html | 2 |
5 files changed, 17 insertions, 16 deletions
diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html index c8c9a4f7..6dd0d967 100644 --- a/pelican/themes/simple/templates/article.html +++ b/pelican/themes/simple/templates/article.html @@ -22,11 +22,10 @@ {% endblock %} {% 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> @@ -60,8 +59,7 @@ </div> {% endif %} </footer><!-- /.post-info --> - <div class="entry-content"> + <article> {{ article.content }} - </div><!-- /.entry-content --> -</section> + </article> {% endblock %} 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/base.html b/pelican/themes/simple/templates/base.html index 2c17dbfb..1d8ae843 100644 --- a/pelican/themes/simple/templates/base.html +++ b/pelican/themes/simple/templates/base.html @@ -5,6 +5,7 @@ <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> <meta charset="utf-8" /> <meta name="generator" content="Pelican" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% if FEED_ALL_ATOM %} <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> {% endif %} @@ -32,11 +33,11 @@ {% endblock head %} </head> -<body id="index" class="home"> - <header id="banner" class="body"> +<body> + <header> <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> - </header><!-- /#banner --> - <nav id="menu"><ul> + </header> + <nav><ul> {% for title, link in MENUITEMS %} <li><a href="{{ link }}">{{ title }}</a></li> {% endfor %} @@ -50,14 +51,16 @@ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> {% endfor %} {% endif %} - </ul></nav><!-- /#menu --> + </ul></nav> + <main> {% block content %} {% endblock %} - <footer id="contentinfo" class="body"> + </main> + <footer> <address id="about" class="vcard body"> Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>. </address><!-- /#about --> - </footer><!-- /#contentinfo --> + </footer> </body> </html> 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 %} |