From cc1220bfd794dff1fc28bd39cafb63c4b1093cf8 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Appel Date: Mon, 25 Dec 2023 17:17:21 -0500 Subject: rewrite layouts --- layouts/research/list.html | 18 ++++++++++++++++++ layouts/research/single.html | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 layouts/research/list.html create mode 100644 layouts/research/single.html (limited to 'layouts/research') diff --git a/layouts/research/list.html b/layouts/research/list.html new file mode 100644 index 0000000..db587e3 --- /dev/null +++ b/layouts/research/list.html @@ -0,0 +1,18 @@ +{{ define "main" }} + + {{ .Content }} + + + {{ $cardConfig := dict + "fullSummary" true + "showMeta" true + "showTags" true + "showCategories" true + }} + {{ range sort .Pages "Params.end_date" "desc" }} + {{ .Scratch.Set "cardConfig" $cardConfig }} + {{ partial "card.html" . }} + {{ end }} + + {{ partial "adaptive_details.html" . }} +{{ end }} diff --git a/layouts/research/single.html b/layouts/research/single.html new file mode 100644 index 0000000..01ecb9e --- /dev/null +++ b/layouts/research/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} + {{ if .Params.abstract }} +
+

Abstract

+
+ {{ .Params.abstract }} +
+
+ {{ end }} + {{ .Content }} +{{ end }} + +{{ define "footer" }} + {{ partial "meta-tag_nav.html" . }} +{{ end }} -- cgit v1.2.3