diff options
Diffstat (limited to 'layouts/shortcodes/all-content.html')
-rw-r--r-- | layouts/shortcodes/all-content.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/shortcodes/all-content.html b/layouts/shortcodes/all-content.html new file mode 100644 index 0000000..fe160d3 --- /dev/null +++ b/layouts/shortcodes/all-content.html @@ -0,0 +1,18 @@ +{{ $category := .Get 0 }} +{{ $filter := slice $category }} +{{ $more_link := .Get 1 }} +{{ $caption := .Inner }} + +<nav class="all-updates"> + <h2>{{ $caption }}</h2> + <ul> + {{- range + (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByTitle }} + + <li><a href="{{ .Permalink }}">{{ .Title }}</a> + {{- end }} + + + </ul> + +</nav> |