From ac180f2d20bc811b662b55b7b0da62a8a42d7d40 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 5 Dec 2023 23:07:58 +0100 Subject: chore: general tidy yp --- layouts/partials/article_list_full_item.html | 13 +++++++++++++ layouts/partials/back_nav.html | 2 +- layouts/partials/blog_index.html | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/article_list_full_item.html create mode 100644 layouts/partials/blog_index.html (limited to 'layouts/partials') diff --git a/layouts/partials/article_list_full_item.html b/layouts/partials/article_list_full_item.html new file mode 100644 index 0000000..31ab76f --- /dev/null +++ b/layouts/partials/article_list_full_item.html @@ -0,0 +1,13 @@ +
+

{{ .Title }}

+ + + + + + {{ .Page.Content }} +
diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html index 9f7620f..6358a10 100644 --- a/layouts/partials/back_nav.html +++ b/layouts/partials/back_nav.html @@ -9,7 +9,7 @@ {{ else if in .Page.Params.Category "bsd" }} ← Back to Daemonic BSD Site {{ else if in .Page.Params.Category "blog" }} - ← Back to Michal's blog + ← Back to Michal's blog {{ end }} {{ if not .Page.Params.hardback }} diff --git a/layouts/partials/blog_index.html b/layouts/partials/blog_index.html new file mode 100644 index 0000000..81768b7 --- /dev/null +++ b/layouts/partials/blog_index.html @@ -0,0 +1,19 @@ +{{ $paginator := .Paginator 25 }} +{{ range (.Paginate (where .Site.RegularPages ".Params.category" "intersect" "blog")).Pages }} + {{ partial "partials/article_list_full_item.html" . }} +{{ end }} + + -- cgit v1.2.3