Move the header inside the article tag in single template.

This commit is contained in:
Fredrik Jonsson 2019-04-17 14:25:37 +02:00
commit 15c6c89fce

View file

@ -9,9 +9,9 @@
{{ define "main" -}}
<main class="main layout__main">
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
<header>
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
</header>