start to simplify layouts
This commit is contained in:
parent
c1548db124
commit
9678e8d33a
@ -8,7 +8,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
{{ .Render "summary" }}
|
<article class="h-entry">
|
||||||
|
{{ partial "article.html" . }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
|
<article class="h-entry">
|
||||||
{{ partial "article.html" . }}
|
{{ partial "article.html" . }}
|
||||||
|
</article>
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{{ partial "article.html" . }}
|
|
@ -2,7 +2,9 @@
|
|||||||
<main>
|
<main>
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ .Render "summary" }}
|
<article class="h-entry">
|
||||||
|
{{ partial "article.html" . }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<article class="h-entry">
|
|
||||||
<h1 class="p-name"><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
<h1 class="p-name"><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||||
{{ if (isset .Params "date") }}
|
{{ if (isset .Params "date") }}
|
||||||
<p>
|
<p>
|
||||||
@ -16,4 +15,3 @@
|
|||||||
<section class="e-content">
|
<section class="e-content">
|
||||||
{{ .Content}}
|
{{ .Content}}
|
||||||
</section>
|
</section>
|
||||||
</article>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user