From a7c22bc57988f5528e7928106e5032c2e77f3142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 5 Sep 2023 13:09:02 +0200 Subject: [PATCH] piratify: fix Hugo build for --minify #636 --- layouts/partials/shortcodes/tabs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html index 44dd033cca..5eaa662e1d 100644 --- a/layouts/partials/shortcodes/tabs.html +++ b/layouts/partials/shortcodes/tabs.html @@ -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 ) }}