shortcodes: Add list_tags and list_categories

To use:

`{{< list_tags >}}` to provide a list of linked tags.
`{{< list_categories >}}` to provide a list of linked categories.
This commit is contained in:
George Cushen committed 2018-07-15 02:25:09 +01:00
1 parent 2abaa8454e
commit 74b0b6f508
2 files changed
+10

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
<ul class="list-unstyled">
{{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
{{ end }}
</ul>
+5
View File
@@ -0,0 +1,5 @@
<ul class="list-unstyled">
{{ range ($.Site.GetPage "taxonomyTerm" "tags").Pages }}
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
{{ end }}
</ul>