Make taxonomy layouts work with new system.
This commit is contained in:
parent
0499e44bcc
commit
52d48a9f3f
2 changed files with 14 additions and 1 deletions
4
layouts/taxonomy-summary.html
Normal file
4
layouts/taxonomy-summary.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
|
||||
<h2 class="title"><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="meta">({{ .Data.Pages.Len }})</span></h2>
|
||||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
</article>
|
||||
13
layouts/taxonomy.html
Normal file
13
layouts/taxonomy.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" -}}
|
||||
<main class="main layout__main">
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ range .Pages.ByTitle -}}
|
||||
{{ .Render "taxonomy-summary" }}
|
||||
{{ end -}}
|
||||
</main>
|
||||
{{ end -}}
|
||||
Loading…
Reference in a new issue