From 24c3bf512ea099e1212317f8fe66fa622d503cb2 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Wed, 19 Jan 2022 12:49:10 +0100 Subject: [PATCH] add a person single file template Signed-off-by: Toshaan Bharvani --- .../layouts/persons/single.html | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 themes/openpowerfoundation/layouts/persons/single.html diff --git a/themes/openpowerfoundation/layouts/persons/single.html b/themes/openpowerfoundation/layouts/persons/single.html new file mode 100644 index 0000000..9277153 --- /dev/null +++ b/themes/openpowerfoundation/layouts/persons/single.html @@ -0,0 +1,35 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} +
+
+
+
+
+

{{ .Title }}

+
+
+ {{ if .Param "image" }} +
+
 
+
+ {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ if $imageresource }} +
+ {{ $image := $imageresource.Fit "600x600 webp" }} + {{ .Title }} +
+ {{ end }} +
+
 
+
+ {{ end }} +
+
 
+
{{ .Content }}
+
 
+
+
+
+{{ partial "footer.html" . }}