diff options
author | mms <michal@sapka.me> | 2023-11-08 13:50:58 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-08 13:50:58 +0100 |
commit | 1a98525e9cfba9d4418daf09ad8268b0a086464c (patch) | |
tree | 0ef32403c438c07bf251b0adedd55dcc5944b290 /layouts/shortcodes/recent-updates.html | |
parent | 55f2bbfd5e53c43f244b751befb6403f76f9561e (diff) |
feat: subpage shortcodes
Diffstat (limited to 'layouts/shortcodes/recent-updates.html')
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html new file mode 100644 index 0000000..8b8437c --- /dev/null +++ b/layouts/shortcodes/recent-updates.html @@ -0,0 +1,8 @@ +{{ $category := .Get 0 }} +{{ $more_link := .Get 1 }} + +{{ range (where site.Pages ".Params.category" "==" $category) }} +aa + {{ partial "partials/article_list_item.html" . }} +{{ end }} +</article> |