From a7fed26337081ae0edbe84c769af21a409536cf3 Mon Sep 17 00:00:00 2001 From: Óscar Nájera <hello@oscarnajera.com> Date: Sun, 15 Jul 2018 19:43:38 +0200 Subject: Import search https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae --- layouts/_default/list.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 layouts/_default/list.html (limited to 'layouts/_default/list.html') diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..7c9593d --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} +<section class="bg-near-white"> + <ul> + {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }} + <li><a href="/{{ $taxonomyname | urlize }}">{{ $taxonomyname }}</a> + <ul> + {{ range $key, $value := $taxonomy }} + <li> {{ $key }} </li> + <ul> + {{ range $value.Pages }} + <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li> + {{ end }} + </ul> + {{ end }} + </ul> + </li> + {{ end }} + </ul> +</section> +{{ end }} -- cgit v1.2.3