Refactor h1 headings in the content template

This commit is contained in:
Helen Chong 2024-06-06 19:11:29 +08:00
parent 30d81fe3dd
commit 53b6e27905
1 changed files with 2 additions and 2 deletions

View File

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