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/pagination.html | 4 ++-- layouts/partials/list/post-card.html | 16 +++++++++++----- layouts/partials/list/recent-posts.html | 19 ++++++++----------- 3 files changed, 21 insertions(+), 18 deletions(-) (limited to 'layouts/partials/list') diff --git a/layouts/partials/list/pagination.html b/layouts/partials/list/pagination.html index 47d90ff..d1170e1 100644 --- a/layouts/partials/list/pagination.html +++ b/layouts/partials/list/pagination.html @@ -7,7 +7,7 @@ rel="prev" aria-label="{{ lang.Translate "pagination.previous_page" | default "Previous page" }}" > - ← {{ lang.Translate "common.previous" | default "Previous" }} + ← {{ lang.Translate "common.previous" | default "Previous" }} {{- end }} @@ -21,7 +21,7 @@ rel="next" aria-label="{{ lang.Translate "pagination.next_page" | default "Next page" }}" > - {{ lang.Translate "common.next" | default "Next" }} → + {{ lang.Translate "common.next" | default "Next" }} → {{- end }} diff --git a/layouts/partials/list/post-card.html b/layouts/partials/list/post-card.html index 75be9ce..254cc6b 100644 --- a/layouts/partials/list/post-card.html +++ b/layouts/partials/list/post-card.html @@ -10,11 +10,17 @@ - {{- with $post.ReadingTime }} -

- {{ lang.Translate "list.reading_time" . | default (printf "Estimated reading time: %s min" .) }} -

- {{- end }} + 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