Refactor h1 headings in the content template

This commit is contained in:
Leilukin 2024-06-06 19:11:29 +08:00 committed by Helen Chong
parent 9fc62783aa
commit bdb3deb80e

View File

@ -10,8 +10,9 @@
</ul>
{% endif %}
<h1>{{ articleTitle or pageTitle or title }}</h1>
{% if isArticle %}
<h1>{{ articleTitle }}</h1>
<div class="article__info">
<p>Posted on {{ date | formatDate }} by {{ sitemeta.siteAuthor.name }}
{% if updated %}
@ -27,7 +28,6 @@
<p>{{ content | emojiReadTime }}</p>
</div>
{% else %}
<h1>{{ pageTitle or title }}</h1>
{% if desc %}
<p>{{ desc }}</p>
{% endif %}