mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 02:40:24 +00:00
details: remove shortcode for now #957
due to security considerations regarding the proposed implementation in the Hugo repo
This commit is contained in:
parent
deee4ae6b7
commit
544df5e412
4 changed files with 1 additions and 20 deletions
|
@ -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 %}} 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 %}} 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.
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Translation into Persian. This language is not supported for search.
|
||||||
|
|
|
@ -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 [`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
|
### Parameter
|
||||||
|
|
||||||
| Name | Position | Default | Notes |
|
| Name | Position | Default | Notes |
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7.1.1+0505b36141f2a69dc36be8589c0678783cad98a9
|
7.1.1+deee4ae6b7ee908a43a3a5d784714540769024ea
|
|
@ -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
|
|
||||||
) }}
|
|
Loading…
Reference in a new issue