Quellcode durchsuchen

add taxonomy templates

tags/v1.1
Bud Parr vor 7 Jahren
Ursprung
Commit
3951d65c61
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
2 geänderte Dateien mit 47 neuen und 0 gelöschten Zeilen
  1. 18
    0
      layouts/_default/taxonomy.html
  2. 29
    0
      layouts/_default/terms.html

+ 18
- 0
layouts/_default/taxonomy.html Datei anzeigen

@@ -0,0 +1,18 @@
{{ define "main" }}
<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">

<p>Below you will find pages that utilize the taxonomy term “{{ .Title }}”</p>
</div>
</article>
<div class="mw8 center">
{{ $section := .Data.Pages }}
<section class="flex-ns flex-wrap justify-around mt5">
{{ range $section }}
<div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }}
</div>
{{ end }}
</section>
</div>
{{ end }}

+ 29
- 0
layouts/_default/terms.html Datei anzeigen

@@ -0,0 +1,29 @@
{{ define "main" }}
<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
{{ .Content }}
</div>
</article>
<div class="mw8 center">
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
<h1>
{{ $taxonomyname | humanize }}
</h1>

<section class="ph4">
{{ range $key, $value := $taxonomy }}
<h2 class="f1">
<a href="{{ $key | urlize }}" class="link blue hover-black">
{{ $key }}
</a>
</h2>
{{ range $value.Pages }}
{{ partial "summary.html" . }}
{{ end }}
{{ end }}
</section>

{{ end }}

</div>
{{ end }}

Laden…
Abbrechen
Speichern