mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
piratify: fix Hugo build for --minify #636
This commit is contained in:
parent
e84e77f44b
commit
a7c22bc579
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
) }}
|
||||
|
|
Loading…
Reference in a new issue