highlight: fix codefence syntax in Hugo >= 0.121.0 #749

This commit is contained in:
Sören Weber 2023-12-13 22:42:59 +01:00
parent e08d5a54a5
commit 609539c314
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,8 @@ This document shows you what's new in the latest release and flags it with one o
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The themes [config](basics/configuration) and [frontmatter](cont/frontmatter) options received a comprehensive documentation update. In addition the theme switched from `config.toml` to `hugo.toml`. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The themes [config](basics/configuration) and [frontmatter](cont/frontmatter) options received a comprehensive documentation update. In addition the theme switched from `config.toml` to `hugo.toml`.
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.121.0{{% /badge %}} or higher for the [`highlight` shortcode](shortcodes/highlight). This does not change the minimum required Hugo version.
--- ---
## 5.23.0 (2023-11-03) {#5230} ## 5.23.0 (2023-11-03) {#5230}

View file

@ -59,7 +59,7 @@
{{- end }} {{- end }}
{{- $params := slice }} {{- $params := slice }}
{{- range $k, $v := $options }} {{- range $k, $v := $options }}
{{- $params = $params | append (printf "%s=%s" $k $v) }} {{- $params = $params | append (printf "%s=%s" $k (string $v)) }}
{{- end }} {{- end }}
{{- $params = delimit $params ", " }} {{- $params = delimit $params ", " }}
{{- $title := "" }} {{- $title := "" }}