From 544df5e41202b9b8bc59910fb2217ae9a2a9a4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 8 Dec 2024 00:37:36 +0100 Subject: [PATCH] details: remove shortcode for now #957 due to security considerations regarding the proposed implementation in the Hugo repo --- .../content/introduction/releasenotes/7/2.en.md | 2 -- exampleSite/content/shortcodes/expand.en.md | 2 -- layouts/partials/version.txt | 2 +- layouts/shortcodes/details.html | 15 --------------- 4 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 layouts/shortcodes/details.html diff --git a/exampleSite/content/introduction/releasenotes/7/2.en.md b/exampleSite/content/introduction/releasenotes/7/2.en.md index 9382170e71..5a56f19af1 100644 --- a/exampleSite/content/introduction/releasenotes/7/2.en.md +++ b/exampleSite/content/introduction/releasenotes/7/2.en.md @@ -30,8 +30,6 @@ weight = -2 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} As a fallout of fixing the flashing issue, you can now minify the bundled stylesheets by setting the [`minify` parameter](configuration/sitemanagement/stableoutput/#disabling-assets-minification) in your `hugo.toml`. Without configuring this parameter, the theme will minify the stylesheets for production (`hugo`) but not for development (`hugo server`). -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Support for Hugo’s built-in [`details` shortcode](https://gohugo.io/content-management/shortcodes/#details). - - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 11.4.1. This adds support for [Kanban](shortcodes/mermaid#kanban) diagrams. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Translation into Persian. This language is not supported for search. diff --git a/exampleSite/content/shortcodes/expand.en.md b/exampleSite/content/shortcodes/expand.en.md index d9aec115ce..24f6a85e2a 100644 --- a/exampleSite/content/shortcodes/expand.en.md +++ b/exampleSite/content/shortcodes/expand.en.md @@ -62,8 +62,6 @@ That's some more text with a footnote.[^someid] The [`notice` shortcode](shortcodes/notice) is also capable of displaying expandable/collapsible sections of text but with additional parameter for color and additional icons. -The theme supports Hugo’s built-in [`details` shortcode](https://gohugo.io/content-management/shortcodes/#details) by mapping the parameter to the theme's `expand` shortcode. - ### Parameter | Name | Position | Default | Notes | diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index f14e88ee49..d3681085f5 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.1.1+0505b36141f2a69dc36be8589c0678783cad98a9 \ No newline at end of file +7.1.1+deee4ae6b7ee908a43a3a5d784714540769024ea \ No newline at end of file diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html deleted file mode 100644 index 516f8f3f53..0000000000 --- a/layouts/shortcodes/details.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- $summary := (.Get "summary") | default (T "Details") }} -{{- $open := false }} -{{- if in (slice "false" false 0) (.Get "open") }} - {{- $open = false }} -{{- else if in (slice "true" true 1) (.Get "open")}} - {{- $open = true }} -{{- end }} -{{- partial "shortcodes/notice.html" (dict - "page" .Page - "content" .Inner - "expanded" $open - "params" .Params - "style" "transparent" - "title" $summary -) }} \ No newline at end of file