From 71e48e43cefa0b2830b8f167f5ca5d0a6dad738e Mon Sep 17 00:00:00 2001 From: mms Date: Mon, 11 Nov 2024 21:33:47 +0100 Subject: feat: book reviews --- layouts/reviews/list.html | 38 ++++++++++++++++++++++++++++++++++++++ layouts/reviews/single.html | 22 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 layouts/reviews/list.html create mode 100644 layouts/reviews/single.html (limited to 'layouts/reviews') diff --git a/layouts/reviews/list.html b/layouts/reviews/list.html new file mode 100644 index 0000000..b5a9643 --- /dev/null +++ b/layouts/reviews/list.html @@ -0,0 +1,38 @@ +{{ define "main" }} +{{ $page := .Page }} +
+{{ .Content }} + +{{ range .Params.reviewSection}} +

{{ . }}

+ + + + + + + + + {{- range +(where $page.Site.RegularPages ".Params.reviewSection" "intersect" (slice .)).ByTitle }} + + + + + + {{- end }} + +
TitleRTG
{{ .Title }}{{ .Params.Rating}}
+ {{ end }} +
+ +{{ end }} diff --git a/layouts/reviews/single.html b/layouts/reviews/single.html new file mode 100644 index 0000000..8b8e1da --- /dev/null +++ b/layouts/reviews/single.html @@ -0,0 +1,22 @@ +{{ define "main" }} +
+ + +

{{ .Title }}

+
+ + {{ .Page.Content }} + +
+ +
+{{- end }} -- cgit v1.2.3