From 43e9a8c37669592683ce90ea7ba6db030a2fa480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 7 Apr 2024 22:45:00 +0200 Subject: [PATCH] attachments: remove warnings for unsupported Hugo versions #825 --- layouts/partials/shortcodes/attachments.html | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/layouts/partials/shortcodes/attachments.html b/layouts/partials/shortcodes/attachments.html index fac88b5f19..08b2fab374 100644 --- a/layouts/partials/shortcodes/attachments.html +++ b/layouts/partials/shortcodes/attachments.html @@ -41,23 +41,12 @@ {{- $urlPrefix := strings.TrimRight "/" $page.RelPermalink }} {{- with $page }} {{- if ne .BundleType "leaf" }} - {{- $hugoVersion := "0.112.0" }} - {{- if ge hugo.Version $hugoVersion }} - {{- warnf "%q: UNSUPPORTED usage of 'attachments' shortcode found while using Hugo >= 0.112.0, use a leaf bundle instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/attachments/index.html#single-language" $page.File.Filename }} - {{- else }} - {{- warnf "%q: DEPRECATED usage of 'attachments' shortcode found which will not be compatible while using Hugo >= 0.112.0, use a leaf bundle instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/attachments/index.html#single-language" $page.File.Filename }} - {{- end }} + {{- warnf "%q: UNSUPPORTED usage of 'attachments' shortcode found while using Hugo >= 0.112.0, use a leaf bundle instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/attachments/index.html#single-language" $page.File.Filename }} {{- end }}
{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | .RenderString }}