details: remove shortcode for now #957

due to security considerations regarding the proposed implementation
in the Hugo repo
This commit is contained in:
Sören Weber 2024-12-08 00:37:36 +01:00
parent deee4ae6b7
commit 544df5e412
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
4 changed files with 1 additions and 20 deletions

View file

@ -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 Hugos 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.

View file

@ -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 Hugos 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 |

View file

@ -1 +1 @@
7.1.1+0505b36141f2a69dc36be8589c0678783cad98a9
7.1.1+deee4ae6b7ee908a43a3a5d784714540769024ea

View file

@ -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
) }}