Taxonomy in Partials ausgelagert

This commit is contained in:
mdn 2022-11-28 21:42:49 +01:00
parent 533d7f2e46
commit be11de4217
6 changed files with 26 additions and 46 deletions

View file

@ -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 }}

View 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 }}

View 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 }}

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}