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 ++++++++----------- layouts/partials/navmenu.html | 3 +-- layouts/partials/select-theme.html | 12 ++++++------ layouts/partials/single/next-prev.html | 2 +- 6 files changed, 29 insertions(+), 27 deletions(-) (limited to 'layouts/partials') 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 }} diff --git a/layouts/partials/navmenu.html b/layouts/partials/navmenu.html index 91e53b3..e833168 100644 --- a/layouts/partials/navmenu.html +++ b/layouts/partials/navmenu.html @@ -1,6 +1,5 @@ {{- /* -Simplified version of the `hugo new template` menu.html default -Renders a menu for the given menu ID. +Simplified version of the `hugo new template` menu.html default. Renders a menu for the given menu ID. @context {page} page: The current page. @context {string} menuID: The menu ID. diff --git a/layouts/partials/select-theme.html b/layouts/partials/select-theme.html index 443e056..3d82bd6 100644 --- a/layouts/partials/select-theme.html +++ b/layouts/partials/select-theme.html @@ -6,10 +6,10 @@ data-label-dark="{{ lang.Translate "theme.toggle_dark" }}" data-label-light="{{ lang.Translate "theme.toggle_light" }}" > - - + + diff --git a/layouts/partials/single/next-prev.html b/layouts/partials/single/next-prev.html index 1c0b462..b80e39a 100644 --- a/layouts/partials/single/next-prev.html +++ b/layouts/partials/single/next-prev.html @@ -21,7 +21,7 @@ {{ lang.Translate "post.next" | default "Next post:" }} - → {{ .Title }} + {{ .Title }} → -- cgit v1.2.3