start to simplify layouts
This commit is contained in:
parent
c1548db124
commit
9678e8d33a
@ -8,7 +8,9 @@
|
||||
{{ end }}
|
||||
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
<article class="h-entry">
|
||||
{{ partial "article.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
|
@ -1,5 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<article class="h-entry">
|
||||
{{ partial "article.html" . }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
@ -1 +0,0 @@
|
||||
{{ partial "article.html" . }}
|
@ -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>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<article class="h-entry">
|
||||
<h1 class="p-name"><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
{{ if (isset .Params "date") }}
|
||||
<p>
|
||||
<h1 class="p-name"><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
{{ if (isset .Params "date") }}
|
||||
<p>
|
||||
<small>
|
||||
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
|
||||
<a rel="author" class="p-author h-card" href="{{ .Site.BaseURL }}">{{ .Site.Params.AuthorName }}</a>
|
||||
@ -11,9 +10,8 @@
|
||||
<a class="p-category" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</small>
|
||||
{{ end }}
|
||||
</p>
|
||||
<section class="e-content">
|
||||
{{ .Content}}
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
</p>
|
||||
<section class="e-content">
|
||||
{{ .Content}}
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user