piratify: fix Hugo build for --minify #636

This commit is contained in:
Sören Weber 2023-09-05 13:09:02 +02:00
parent e84e77f44b
commit a7c22bc579
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -3,7 +3,7 @@
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tabs' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5180" $page.File.Path }}
{{- end }}
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) }}
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) | anchorize }}
{{- $color := .color }}
{{- $style := .style }}
{{- $title := .title }}
@ -34,7 +34,7 @@
"color" $color
"content" .content
"icon" $icon
"itemid" (printf "%s%s" ($title | $page.RenderString | plainify) ($icon | plainify))
"itemid" (printf "%s%s" ($title | $page.RenderString | anchorize) ($icon | anchorize))
"style" $style
"title" $title
) }}