Merge pull request #144 from hiteshjasani/fix-post-title-h1

Post title should be an H1 element for semantic and search rankings.
This commit is contained in:
Radek Kozieł 2020-04-14 01:36:16 +02:00 committed by GitHub
commit cf5e597491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
<div class="post">
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
{{ if .Date | default nil }}
<span class="post-date">