start to simplify layouts

This commit is contained in:
Marvin Steadfast 2020-03-12 11:37:20 +01:00
parent c1548db124
commit 9678e8d33a
5 changed files with 37 additions and 34 deletions

View File

@ -8,7 +8,9 @@
{{ end }}
{{ range .Paginator.Pages }}
{{ .Render "summary" }}
<article class="h-entry">
{{ partial "article.html" . }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</main>

View File

@ -1,5 +1,7 @@
{{ define "main" }}
<main>
<article class="h-entry">
{{ partial "article.html" . }}
</article>
</main>
{{ end }}

View File

@ -1 +0,0 @@
{{ partial "article.html" . }}

View File

@ -2,7 +2,9 @@
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
<article class="h-entry">
{{ partial "article.html" . }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</main>

View File

@ -1,4 +1,3 @@
<article class="h-entry">
<h1 class="p-name"><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ if (isset .Params "date") }}
<p>
@ -16,4 +15,3 @@
<section class="e-content">
{{ .Content}}
</section>
</article>