From 65e78c7f9eac75dd1187196fa17820ab53bb94b1 Mon Sep 17 00:00:00 2001 From: Sean Dockray Date: Thu, 6 May 2021 15:54:12 +1000 Subject: [PATCH] single page interview layout --- layouts/interview/single.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 layouts/interview/single.html diff --git a/layouts/interview/single.html b/layouts/interview/single.html new file mode 100644 index 0000000..ba85bd6 --- /dev/null +++ b/layouts/interview/single.html @@ -0,0 +1,22 @@ +{{ define "singlebody" }} + + {{- partialCached "header.html" . .RelPermalink -}} +

{{ .Title }}

+ {{- partialCached "singlebody.html" . .RelPermalink -}} +
+ + {{ $date := dateFormat "2 January, 2006" ($.Param "date") }} + {{ $audio := ($.Param "podcast_file") }} + +

{{ with $.Param "Description" }}{{ . | $.RenderString }}{{ end }}

+ + Interview conducted on {{ $date }} + + {{ with $.Param "transcript" }} + {{ $transcript := (printf "[Transcript](%s)" . ) }} +

{{ $transcript | $.RenderString }}

+ {{ end }} + + {{ .Content }} +
+{{ end }} \ No newline at end of file