summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/recent-updates.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2023-11-08 13:50:58 +0100
committermms <michal@sapka.me>2023-11-08 13:50:58 +0100
commit1a98525e9cfba9d4418daf09ad8268b0a086464c (patch)
tree0ef32403c438c07bf251b0adedd55dcc5944b290 /layouts/shortcodes/recent-updates.html
parent55f2bbfd5e53c43f244b751befb6403f76f9561e (diff)
feat: subpage shortcodes
Diffstat (limited to 'layouts/shortcodes/recent-updates.html')
-rw-r--r--layouts/shortcodes/recent-updates.html8
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>