Merge pull request #2976 from pieqq/simple-theme-fixes

This commit is contained in:
Justin Mayer 2022-08-04 15:08:09 +02:00 committed by GitHub
commit e265deb094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 16 deletions

View file

@ -22,11 +22,10 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<section id="content" class="body">
<header> <header>
<h2 class="entry-title"> <h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" <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 %} {% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }} {{ translations.translations_for(article) }}
</header> </header>
@ -60,8 +59,7 @@
</div> </div>
{% endif %} {% endif %}
</footer><!-- /.post-info --> </footer><!-- /.post-info -->
<div class="entry-content"> <article>
{{ article.content }} {{ article.content }}
</div><!-- /.entry-content --> </article>
</section>
{% endblock %} {% endblock %}

View file

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

View file

@ -5,6 +5,7 @@
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" /> <meta name="generator" content="Pelican" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if FEED_ALL_ATOM %} {% 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" /> <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 %} {% endif %}
@ -32,11 +33,11 @@
{% endblock head %} {% endblock head %}
</head> </head>
<body id="index" class="home"> <body>
<header id="banner" class="body"> <header>
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
</header><!-- /#banner --> </header>
<nav id="menu"><ul> <nav><ul>
{% for title, link in MENUITEMS %} {% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li> <li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %} {% endfor %}
@ -50,14 +51,16 @@
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul></nav><!-- /#menu --> </ul></nav>
<main>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<footer id="contentinfo" class="body"> </main>
<footer>
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="https://www.python.org/">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer>
</body> </body>
</html> </html>

View file

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

View file

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