From 3b1c002c819937e5924a3a4e480d412a49ebaab8 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Fri, 14 Oct 2022 22:21:30 -0500 Subject: [PATCH] Add feedback blocks to episode pages #136 --- themes/jb/layouts/episode/single.html | 5 ++- themes/jb/layouts/partials/episode/links.html | 32 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 themes/jb/layouts/partials/episode/links.html diff --git a/themes/jb/layouts/episode/single.html b/themes/jb/layouts/episode/single.html index 8d3d99788..f21afbcd5 100644 --- a/themes/jb/layouts/episode/single.html +++ b/themes/jb/layouts/episode/single.html @@ -36,6 +36,9 @@
{{ .Date.Day }} {{ .Date.Month }} {{ .Date.Year +
+ {{ partial "episode/links.html" . }} +
{{ partial "episode/podverseplayer.html" . }} {{ partial "episode/downloadlinks.html" . }} @@ -114,4 +117,4 @@

Tags

-{{end}} \ No newline at end of file +{{end}} diff --git a/themes/jb/layouts/partials/episode/links.html b/themes/jb/layouts/partials/episode/links.html new file mode 100644 index 000000000..d99d4a4f1 --- /dev/null +++ b/themes/jb/layouts/partials/episode/links.html @@ -0,0 +1,32 @@ +
+ + +
subscribe
+
+ +
support
+
+ {{with .Params.links}} + {{ range $key, $value := . }} + + {{ if eq $key "email" }} +
{{$key}}
+ {{ else if eq $key "shownotes" }} +
{{$key}}
+ {{ else if eq $key "matrix" }} +
{{$key}}
+ {{ else if eq $key "mumble" }} +
{{$key}}
+ {{ else if eq $key "discord" }} +
{{$key}}
+ {{ else if eq $key "wiki" }} +
{{$key}}
+ {{ else if eq $key "blog" }} +
{{$key}}
+ {{ else }} +
{{$key}}
+ {{ end }} +
+ {{ end }} + {{end}} +