From eb8bf81fc0bc03b5cd67545dd56f77376297a1da Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 8 Dec 2023 21:16:07 +0100 Subject: feat: digital ownership --- layouts/partials/article_index.html | 6 ++++++ layouts/partials/article_list_abstract_item.html | 14 ++++++++++++++ layouts/partials/back_nav.html | 23 ++++++++++++----------- 3 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 layouts/partials/article_index.html create mode 100644 layouts/partials/article_list_abstract_item.html (limited to 'layouts/partials') diff --git a/layouts/partials/article_index.html b/layouts/partials/article_index.html new file mode 100644 index 0000000..77d6db8 --- /dev/null +++ b/layouts/partials/article_index.html @@ -0,0 +1,6 @@ +{{ .Page.Content }} + +{{- $article_category := slice "article" }} +{{- range (where .Site.RegularPages ".Params.category" "intersect" $article_category) }} + {{- partial "partials/article_list_abstract_item.html" . }} +{{- end }} diff --git a/layouts/partials/article_list_abstract_item.html b/layouts/partials/article_list_abstract_item.html new file mode 100644 index 0000000..c429e1a --- /dev/null +++ b/layouts/partials/article_list_abstract_item.html @@ -0,0 +1,14 @@ + +
+

{{ .Title }}

+ + {{ .Page.Params.abstract }} + + +
diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html index 6358a10..f4d26cc 100644 --- a/layouts/partials/back_nav.html +++ b/layouts/partials/back_nav.html @@ -1,20 +1,21 @@ -{{ if not .Page.Params.noback }} +{{- if not .Page.Params.noback }} -{{ end }} +{{- end }} -- cgit v1.2.3