Skip to content

Commit

Permalink
highlight: fix codefence syntax in Hugo >= 0.121.0 #749
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Dec 13, 2023
1 parent e08d5a5 commit 609539c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions exampleSite/content/basics/migration/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}} 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}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/shortcodes/highlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{{- end }}
{{- $params := slice }}
{{- range $k, $v := $options }}
{{- $params = $params | append (printf "%s=%s" $k $v) }}
{{- $params = $params | append (printf "%s=%s" $k (string $v)) }}
{{- end }}
{{- $params = delimit $params ", " }}
{{- $title := "" }}
Expand Down

0 comments on commit 609539c

Please sign in to comment.