Taxonomy in Partials ausgelagert
This commit is contained in:
parent
533d7f2e46
commit
be11de4217
6 changed files with 26 additions and 46 deletions
|
@ -1,11 +1 @@
|
||||||
{{ define "main" }}
|
{{- partial "taxonomy/description.html" . -}}
|
||||||
<h1 class="mb-5">{{ .Title }}</h1>
|
|
||||||
{{ range .Pages.ByTitle }}
|
|
||||||
<article class="border-bottom">
|
|
||||||
<h3 class="mb-3">
|
|
||||||
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
|
||||||
</h3>
|
|
||||||
<p>{{ .Description }}</p>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
11
layouts/partials/taxonomy/description.html
Normal file
11
layouts/partials/taxonomy/description.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1 class="mb-5">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages.ByTitle }}
|
||||||
|
<article class="border-bottom">
|
||||||
|
<h3 class="mb-3">
|
||||||
|
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
||||||
|
</h3>
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
11
layouts/partials/taxonomy/summary.html
Normal file
11
layouts/partials/taxonomy/summary.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1 class="mb-5">{{ .Title }}</h1>
|
||||||
|
{{ range .Pages.ByTitle }}
|
||||||
|
<article class="border-bottom">
|
||||||
|
<h3 class="mb-3">
|
||||||
|
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
||||||
|
</h3>
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
|
@ -1,11 +1 @@
|
||||||
{{ define "main" }}
|
{{- partial "taxonomy/summary.html" . -}}
|
||||||
<h1 class="mb-5">{{ .Title }}</h1>
|
|
||||||
{{ range .Pages.ByTitle }}
|
|
||||||
<article class="border-bottom">
|
|
||||||
<h3 class="mb-3">
|
|
||||||
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
|
||||||
</h3>
|
|
||||||
<p>{{ .Summary }}</p>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
|
@ -1,11 +1 @@
|
||||||
{{ define "main" }}
|
{{- partial "taxonomy/summary.html" . -}}
|
||||||
<h1 class="mb-5">{{ .Title }}</h1>
|
|
||||||
{{ range .Pages.ByTitle }}
|
|
||||||
<article class="border-bottom">
|
|
||||||
<h3 class="mb-3">
|
|
||||||
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
|
||||||
</h3>
|
|
||||||
<p>{{ .Summary }}</p>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
|
@ -1,13 +1 @@
|
||||||
{{/* TODO als Partial auslagern*/}}
|
{{- partial "taxonomy/summary.html" . -}}
|
||||||
|
|
||||||
{{ define "main" }}
|
|
||||||
<h1 class="mb-5">{{ .Title }}</h1>
|
|
||||||
{{ range .Pages.ByTitle }}
|
|
||||||
<article class="border-bottom">
|
|
||||||
<h3 class="mb-3">
|
|
||||||
<a href="{{ .RelPermalink | relURL }}">{{ .Title }}</a>
|
|
||||||
</h3>
|
|
||||||
<p>{{ .Summary }}</p>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
Loading…
Reference in a new issue