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 | |
parent | 55f2bbfd5e53c43f244b751befb6403f76f9561e (diff) |
feat: subpage shortcodes
-rw-r--r-- | layouts/shortcodes/pf_stat.html | 9 | ||||
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/layouts/shortcodes/pf_stat.html b/layouts/shortcodes/pf_stat.html new file mode 100644 index 0000000..3b93756 --- /dev/null +++ b/layouts/shortcodes/pf_stat.html @@ -0,0 +1,9 @@ +<details> + <summary>Daily</summary> + <img src="https://michal.sapka.me/pfstat/pfstat.jpg"> + <img src="https://michal.sapka.me/pfstat/pfstat-packets.jpg"> + <img src="https://michal.sapka.me/pfstat/pfstat-states.jpg"> + <img src="https://michal.sapka.me/pfstat/pfstat-errors.jpg"> +</details> + + 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> |