diff options
author | frosty <passedgoandgot200@disroot.org> | 2025-08-22 08:54:40 -0400 |
---|---|---|
committer | frosty <passedgoandgot200@disroot.org> | 2025-08-22 08:54:40 -0400 |
commit | d0deda9b496f582374f71bf25dd97b8410387a21 (patch) | |
tree | 881986978be30b30635e543218c1cecbc74ac21f /themes/orca/layouts/_shortcodes/latest-posts.html | |
download | www-d0deda9b496f582374f71bf25dd97b8410387a21.tar.gz www-d0deda9b496f582374f71bf25dd97b8410387a21.zip |
initial commit
Diffstat (limited to 'themes/orca/layouts/_shortcodes/latest-posts.html')
-rw-r--r-- | themes/orca/layouts/_shortcodes/latest-posts.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/orca/layouts/_shortcodes/latest-posts.html b/themes/orca/layouts/_shortcodes/latest-posts.html new file mode 100644 index 0000000..44ff9d4 --- /dev/null +++ b/themes/orca/layouts/_shortcodes/latest-posts.html @@ -0,0 +1,5 @@ +{{ $limit := .Get "limit" }} +{{ $pages := first $limit (where site.RegularPages "Type" "in" site.Params.mainSections) }} +{{ range $pages }} + {{ partial "post-item" . }} +{{ end }} |