highlight: fix rendering for Hugo < 0.111 #630

This commit is contained in:
Sören Weber 2023-08-26 12:08:34 +02:00
parent 0fc5ead0db
commit d9c59a13e3
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,8 @@ This document shows you what's new in the latest release. For a detailed list of
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release fixes a long outstanding bug where Mermaid graphs could not be displayed if they were initially hidden - like in collapsed `expand` or inactive `tabs`.
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions lower than {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.111.0{{% /badge %}} for the [`highlight` shortcode]({{% relref "shortcodes/highlight" %}}). This does not change the minimum required Hugo version.
---
## 5.19.0 (2023-08-12) {#5190}

View file

@ -11,6 +11,7 @@
{{- $type := "" }}
{{- range $k, $v := . }}
{{- if eq $k "context" }}
{{- else if eq $k "page" }}
{{- else if eq $k "attributes" }}
{{- $attributes = $v }}
{{- else if eq $k "content" }}