From 69f47c2b65f2a6415f2706c2388cd85fa52b641b Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 10 May 2024 20:21:37 +0800 Subject: [PATCH] style(archives): minor tweak --- layouts/partials/hb/modules/blog/archives/list.html | 6 ++---- layouts/partials/hb/modules/blog/archives/posts.html | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/layouts/partials/hb/modules/blog/archives/list.html b/layouts/partials/hb/modules/blog/archives/list.html index d48f6ebf..3904311d 100644 --- a/layouts/partials/hb/modules/blog/archives/list.html +++ b/layouts/partials/hb/modules/blog/archives/list.html @@ -1,9 +1,7 @@ {{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-begin" "Page" .) }}
+ class="archives border-start border-5 ps-4 position-relative mb-3"> {{ partial "hb/modules/blog/archives/posts" .Paginator.Pages }} -
- {{ partial "hb/modules/pagination/index" .Paginator }} -
+{{ partial "hb/modules/pagination/index" .Paginator }} {{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-main-end" "Page" .) }} diff --git a/layouts/partials/hb/modules/blog/archives/posts.html b/layouts/partials/hb/modules/blog/archives/posts.html index c958cbd1..8e5e913c 100644 --- a/layouts/partials/hb/modules/blog/archives/posts.html +++ b/layouts/partials/hb/modules/blog/archives/posts.html @@ -2,7 +2,7 @@ {{- range .GroupByDate "2006" }} {{- $year := .Key }}
-
+
{{- $yearSection := printf "archives/%s" $year }} {{- with site.GetPage $yearSection }}