source: tanzpartie-hugo/themes/bilberry-hugo-theme/layouts/_default/series.terms.html @ 17948

Last change on this file since 17948 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 1.0 KB
Line 
1{{ define "main" }}
2
3<div class="content">
4    <div class="article-wrapper u-cf single">
5        <a class="bubble" href="{{ "/series/" | relLangURL}}">
6            <i class="fa fa-fw fa-list-alt"></i>
7        </a>
8
9        <article class="article">
10            <div class="content">
11                <h3>{{ i18n "series" | default "series" }}</h3>
12                <hr>
13                <ul id="all-series">
14                    {{ range $name, $taxonomy := .Site.Taxonomies.series }}
15                        {{ $series_name := $name }}
16                        {{ $series_path := (printf "/series/%s" (urlize $name)) }}
17                        {{ $series_page := site.GetPage $series_path }}
18
19                        {{ if $series_page }}
20                            {{ $series_name = $series_page.Title }}
21                        {{ end }}
22
23                        <li><a href="{{ $series_path }}">{{ $series_name }} ({{ $taxonomy.Count }})</a></li>
24                    {{ end }}
25                </ul>
26            </div>
27        </article>
28    </div>
29</div>
30{{ end }}
Note: See TracBrowser for help on using the repository browser.