From def39bc3afd58d4237ef3d8ba9491f55dd47034b Mon Sep 17 00:00:00 2001 From: lukmay Date: Fri, 5 Jul 2024 17:52:32 +0200 Subject: [PATCH 1/4] add IDs and copyble links to each section and video --- .../layouts/events/video-library/list.html | 6 ++-- .../odh-fbe/layouts/partials/video-text.html | 36 ++++++++++--------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/themes/odh-fbe/layouts/events/video-library/list.html b/src/themes/odh-fbe/layouts/events/video-library/list.html index a9609b0a..cc6eb5d3 100644 --- a/src/themes/odh-fbe/layouts/events/video-library/list.html +++ b/src/themes/odh-fbe/layouts/events/video-library/list.html @@ -9,7 +9,6 @@ {{ partial "title.html" .Params }} {{ range site.Data.videos.sections }} -

- {{ .title | markdownify }} + + {{ .title | markdownify }} +

diff --git a/src/themes/odh-fbe/layouts/partials/video-text.html b/src/themes/odh-fbe/layouts/partials/video-text.html index 560b795f..4d21c610 100644 --- a/src/themes/odh-fbe/layouts/partials/video-text.html +++ b/src/themes/odh-fbe/layouts/partials/video-text.html @@ -5,22 +5,26 @@ */}} {{"" | safeHTML }} -
-
-
-
- {{ partial "video-iframe.html" . }} -
-
- {{ with .subtitle }}{{ . | markdownify }}{{ end }} -

{{ .title | markdownify }}

-

{{ .description | markdownify }}

+
+
+
+
+ {{ partial "video-iframe.html" . }} +
+
+ {{ with .subtitle }}{{ . | markdownify }}{{ end }} +

+ + {{ .title | markdownify }} + +

+

{{ .description | markdownify }}

- {{ if and (isset . "btn_link") (isset . "btn_label") }} - {{ .btn_label | markdownify }} - {{ end }} -
-
-
+ {{ if and (isset . "btn_link") (isset . "btn_label") }} + {{ .btn_label | markdownify }} + {{ end }} +
+
+
{{"" | safeHTML }} From 86ff9cd447b9c98290b4aec1c94ee9775838c788 Mon Sep 17 00:00:00 2001 From: lukmay Date: Fri, 5 Jul 2024 18:23:37 +0200 Subject: [PATCH 2/4] add logic to open correct section for video --- src/themes/odh-fbe/layouts/partials/js.html | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/themes/odh-fbe/layouts/partials/js.html b/src/themes/odh-fbe/layouts/partials/js.html index 57d84496..56a61746 100644 --- a/src/themes/odh-fbe/layouts/partials/js.html +++ b/src/themes/odh-fbe/layouts/partials/js.html @@ -6,4 +6,47 @@ {{ range .Site.Params.plugins.js}} + + + + {{ end }} \ No newline at end of file From 6d33162940a1032d4bafb9df03d41ea9c7f99a13 Mon Sep 17 00:00:00 2001 From: lukmay Date: Fri, 5 Jul 2024 18:29:42 +0200 Subject: [PATCH 3/4] add comments to new scirpt --- src/themes/odh-fbe/layouts/partials/js.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/themes/odh-fbe/layouts/partials/js.html b/src/themes/odh-fbe/layouts/partials/js.html index 56a61746..7ca36ec1 100644 --- a/src/themes/odh-fbe/layouts/partials/js.html +++ b/src/themes/odh-fbe/layouts/partials/js.html @@ -8,18 +8,23 @@ + {{ end }} \ No newline at end of file From 6d04877a8704230f0cb07ecb054e4f1bfee36711 Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Thu, 11 Jul 2024 09:37:53 +0200 Subject: [PATCH 4/4] remove js for anchor links --- src/themes/odh-fbe/layouts/partials/js.html | 55 +-------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/src/themes/odh-fbe/layouts/partials/js.html b/src/themes/odh-fbe/layouts/partials/js.html index 7ca36ec1..5e421414 100644 --- a/src/themes/odh-fbe/layouts/partials/js.html +++ b/src/themes/odh-fbe/layouts/partials/js.html @@ -6,57 +6,4 @@ {{ range .Site.Params.plugins.js}} - - - - - -{{ end }} \ No newline at end of file +{{ end }}