diff --git a/config/_default/params.toml b/config/_default/params.toml index 8234d292b..c364d27a5 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -31,4 +31,7 @@ analytics = "https://plausible.ktz.cloud/js/plausible.js" github_repo = "https://github.com/JupiterBroadcasting/jupiterbroadcasting.com" # Sponsor Page -sponsors.lookbackdays = -90 \ No newline at end of file +sponsors.lookbackdays = -90 + +# Episode Page +episode.node_link_base_url = "https://amboss.space/node/" diff --git a/themes/jb/layouts/episode/single.html b/themes/jb/layouts/episode/single.html index dc9432453..777a66290 100644 --- a/themes/jb/layouts/episode/single.html +++ b/themes/jb/layouts/episode/single.html @@ -126,6 +126,19 @@

Sponsors

{{ end }} + + {{ if .Params.value }} +
+
+ {{ with .Params.value.recipients }} +

Boost Splits

+
+ {{ partial "episode/valueforvalue.html" (dict "recipients" . "ctx" $) }} +
+ {{ end }} +
+
+ {{ end }} {{ if .Params.tags }}
diff --git a/themes/jb/layouts/partials/episode/valueforvalue.html b/themes/jb/layouts/partials/episode/valueforvalue.html new file mode 100644 index 000000000..05d4eec44 --- /dev/null +++ b/themes/jb/layouts/partials/episode/valueforvalue.html @@ -0,0 +1,20 @@ +
+
+
+ {{ $base_url := .ctx.Site.Params.episode.node_link_base_url }} + {{ range (sort .recipients "split" "desc") }} +
+
+ + {{ .split }}% +
+ +
+ {{ end }} +
+
+