Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/list-taxonomy-terms.html')
-rw-r--r--layouts/partials/list-taxonomy-terms.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/list-taxonomy-terms.html b/layouts/partials/list-taxonomy-terms.html
new file mode 100644
index 0000000..9c813eb
--- /dev/null
+++ b/layouts/partials/list-taxonomy-terms.html
@@ -0,0 +1,13 @@
+<em>{{ $.label }}
+
+{{ range $term := .terms }}
+
+ {{ $term_path := lower (replace ($term) " " "-") }}
+ {{ $term_page := site.GetPage (path.Join $.parent $term_path) }}
+ {{ $url := $term_page.Permalink}}
+
+ <a href={{ $url }}>{{ $term }}</a>
+
+{{ end }}
+
+</em>