From cc91a51ea6abc276e141f9122a75474b6dc5c24e Mon Sep 17 00:00:00 2001 From: Tarasa24 Date: Wed, 13 Nov 2024 18:09:22 +0100 Subject: [PATCH 1/3] Create initial draft --- config/_default/params.toml | 5 ++++- themes/jb/layouts/episode/single.html | 13 ++++++++++++ .../partials/episode/valueforvalue.html | 20 +++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 themes/jb/layouts/partials/episode/valueforvalue.html 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..0d1cc43e2 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 }} +

Value for Value

+
+ {{ 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..091794892 --- /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 }} +
+
+
From aea9e99a1d92cb069cb6823aaf3fd690e617f94d Mon Sep 17 00:00:00 2001 From: Tarasa24 Date: Wed, 13 Nov 2024 18:27:29 +0100 Subject: [PATCH 2/3] Fix column formatting on mobile --- themes/jb/layouts/partials/episode/valueforvalue.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/jb/layouts/partials/episode/valueforvalue.html b/themes/jb/layouts/partials/episode/valueforvalue.html index 091794892..05d4eec44 100644 --- a/themes/jb/layouts/partials/episode/valueforvalue.html +++ b/themes/jb/layouts/partials/episode/valueforvalue.html @@ -3,7 +3,7 @@
{{ $base_url := .ctx.Site.Params.episode.node_link_base_url }} {{ range (sort .recipients "split" "desc") }} -
+
{{ .split }}% From 5cf7d0435c4bb37c6973883b42d186b4075723fa Mon Sep 17 00:00:00 2001 From: Tarasa24 Date: Thu, 14 Nov 2024 09:08:46 +0100 Subject: [PATCH 3/3] Update title --- themes/jb/layouts/episode/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/jb/layouts/episode/single.html b/themes/jb/layouts/episode/single.html index 0d1cc43e2..777a66290 100644 --- a/themes/jb/layouts/episode/single.html +++ b/themes/jb/layouts/episode/single.html @@ -131,7 +131,7 @@

Sponsors

{{ with .Params.value.recipients }} -

Value for Value

+

Boost Splits

{{ partial "episode/valueforvalue.html" (dict "recipients" . "ctx" $) }}