diff options
Diffstat (limited to 'layouts/shortcodes/series.html')
-rw-r--r-- | layouts/shortcodes/series.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/shortcodes/series.html b/layouts/shortcodes/series.html new file mode 100644 index 0000000..dea5141 --- /dev/null +++ b/layouts/shortcodes/series.html @@ -0,0 +1,11 @@ +{{ $series_name := .Get 0 | urlize }} + +{{ range $key, $taxonomy := .Site.Taxonomies.series }} +{{ if eq $key $series_name }} +<ul> + {{ range $taxonomy.Pages.ByDate }} + <li hugo-nav="{{ .RelPermalink }}"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li> + {{ end }} +</ul> +{{ end }} +{{ end }}
\ No newline at end of file |