From 4c41e477e13d37e187c8de4225c7e8056bd9ed28 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 29 Sep 2025 19:17:13 +0200 Subject: Internalise theme --- layouts/partials/list/default.html | 33 +++++++++++++++++++++++++-------- layouts/partials/list/pagination.html | 23 +++++++++++++++++++++++ 2 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 layouts/partials/list/pagination.html (limited to 'layouts/partials/list') diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html index a965ce5..f3fd20e 100644 --- a/layouts/partials/list/default.html +++ b/layouts/partials/list/default.html @@ -1,11 +1,28 @@
-

{{ .Title }}

-
+

+ {{ .Title }} +

+ + + + + +
{{ if .Params.description }} - {{ .Params.description }} - {{ else if .Summary }} - {{ .Summary }} + {{ .Params.description }} + {{ else if .Summary }} + {{ .Summary }} {{ end }} -
- -
\ No newline at end of file + + +
+ + {{ i18n "readMore" }} + + {{ partial "utils/icon" "arrow-right" }} + + +
+ diff --git a/layouts/partials/list/pagination.html b/layouts/partials/list/pagination.html new file mode 100644 index 0000000..2e9487c --- /dev/null +++ b/layouts/partials/list/pagination.html @@ -0,0 +1,23 @@ +{{ $paginator := .Paginator }} + +
+ +
+ {{ if $paginator.HasPrev }} + + {{ partial "utils/icon" "arrow-left" }} + Newer Posts + + {{ end }} +
+ + +
+ {{ if $paginator.HasNext }} + + Older Posts + {{ partial "utils/icon" "arrow-right" }} + + {{ end }} +
+
-- cgit v1.3