mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10: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 }}
|
{{- $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 }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) }}
|
{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) | anchorize }}
|
||||||
{{- $color := .color }}
|
{{- $color := .color }}
|
||||||
{{- $style := .style }}
|
{{- $style := .style }}
|
||||||
{{- $title := .title }}
|
{{- $title := .title }}
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
"color" $color
|
"color" $color
|
||||||
"content" .content
|
"content" .content
|
||||||
"icon" $icon
|
"icon" $icon
|
||||||
"itemid" (printf "%s%s" ($title | $page.RenderString | plainify) ($icon | plainify))
|
"itemid" (printf "%s%s" ($title | $page.RenderString | anchorize) ($icon | anchorize))
|
||||||
"style" $style
|
"style" $style
|
||||||
"title" $title
|
"title" $title
|
||||||
) }}
|
) }}
|
||||||
|
|
Loading…
Reference in a new issue