Skip to content

Commit

Permalink
Use h1 for page titles and article titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Apr 24, 2024
1 parent c145005 commit 1d36d8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/xml/base.tpl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<main>
<div class="u-wrapper">
<div class="u-padding">
<h2 class="Heading-title">
<h1 class="Heading-title">
<a class="Heading-link u-clickable" href="{link}" rel="bookmark"><xsl:value-of select="title" /></a>
</h2>
</h1>
{{ with site.Params.rss }}
<p>
{{ safeHTML . }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ .Content }}

{{ range .Pages.GroupByPublishDate "2006" }}
<h3>{{ .Key }}</h3>
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/heading.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="Heading">
<h2 class="Heading-title">
<h1 class="Heading-title">
<a class="Heading-link u-clickable" href="{{ .RelPermalink }}" rel="bookmark">{{ .Title }}</a>
</h2>
</h1>
{{ with .PublishDate | default nil }}
<time datetime="{{ time.Format "2006-01-02T15:04:05Z07:00" . }}">
{{- time.Format ":date_long" . -}}
Expand Down

0 comments on commit 1d36d8e

Please sign in to comment.