diff options
author | mms <michal@sapka.me> | 2023-11-17 23:08:13 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-17 23:08:13 +0100 |
commit | 01fa8ffafee92e0ddc1c723f97f4fb3d33ca8b20 (patch) | |
tree | a343e9fda06dee947f293630b78fa1047ef798b7 /layouts/shortcodes | |
parent | d0ed7e74343ba6a6fabd622c818d014907c76785 (diff) |
feat: star trek section WIP
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 3 | ||||
-rw-r--r-- | layouts/shortcodes/toc.html | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index e515421..fa98d23 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -1,8 +1,9 @@ {{ $category := .Get 0 }} +{{ $filter := slice $category }} {{ $more_link := .Get 1 }} <nav> -{{ range (where site.Pages ".Params.category" "==" $category) }} +{{ range (where .Site.RegularPages ".Params.category" "intersect" $filter) }} {{ partial "partials/article_list_item.html" . }} {{ end }} </nav> diff --git a/layouts/shortcodes/toc.html b/layouts/shortcodes/toc.html new file mode 100644 index 0000000..8dfb2b5 --- /dev/null +++ b/layouts/shortcodes/toc.html @@ -0,0 +1,3 @@ +{{ range (where site.RegularPages "Type" "!=" "special") }} + {{ partial "partials/article_list_item.html" . }} +{{ end }} |