Skip to content

Commit

Permalink
piratify: fix Hugo build for --minify #636
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Sep 5, 2023
1 parent e84e77f commit a7c22bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
) }}
Expand Down

0 comments on commit a7c22bc

Please sign in to comment.