diff options
author | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
commit | c1a74cc9d62515d0bc1c09522de223c32f2cfd18 (patch) | |
tree | db74591ef4a66988d9c20fd96bf8228556d3278c /layouts/shortcodes/all-content.html | |
parent | 2d27ad1d9b96ace302ddef93e48d7b78863efa43 (diff) |
feat: tidy up BR menu
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> |