From 26df3baeb1afcb4c41ec99f940b237b9589caa42 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Thu, 4 Sep 2025 20:05:27 +0200 Subject: Ready for deployment --- layouts/partials/list/recent-posts.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'layouts/partials/list/recent-posts.html') diff --git a/layouts/partials/list/recent-posts.html b/layouts/partials/list/recent-posts.html index d774138..2404910 100644 --- a/layouts/partials/list/recent-posts.html +++ b/layouts/partials/list/recent-posts.html @@ -18,10 +18,7 @@ List of specified number of the most recent and published posts. Accepts a dict - {{- $recentPosts := where site.RegularPages "Date" "!=" nil }} - {{- $recentPosts = where $recentPosts ".Date" "le" now }} - {{- $recentPosts = first $count $recentPosts }} - + {{- $recentPosts := where site.RegularPages "Params.excludeFromLists" "!=" true | first $count }} {{- if $recentPosts }}
{{- if $showViewAll }} - - {{ lang.Translate "posts.view_all" | default "View all posts" }} + {{- with site.GetPage "/all-posts"}} + + {{ lang.Translate "posts.view_all" | default "View all posts" }} ยป + {{- end }} {{- end }}
{{ else }} -
-

- {{ lang.Translate "list.empty" | default "No posts in this section." }} -

-
+

+ {{ lang.Translate "list.empty" | default "No posts in this section." }} +

{{- end }} -- cgit v1.2.3