From 16eb8efcacc1ed86b773c345305e7e9da55e6229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 10 Oct 2023 19:36:59 +0200 Subject: [PATCH] tabs: warn if internal link targets will be detected falsly #681 --- layouts/partials/shortcodes/link.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/shortcodes/link.html b/layouts/partials/shortcodes/link.html index 0c1c9ef3a6..93aa50158c 100644 --- a/layouts/partials/shortcodes/link.html +++ b/layouts/partials/shortcodes/link.html @@ -4,6 +4,9 @@ {{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'link' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5180" $page.File.Path }} {{- end }} {{- $url := .url }} +{{- if strings.HasPrefix $url "HAHAHUGOSHORTCODE" }} + {{- warnf "%q: WARNING you must call the ref / relref shortcode with '%% %%' instead of '< >' to work correctly for the anchor target attribute" $page.File.Path }} +{{- end }} {{- $title := .title | default "" }} {{- $title = trim $title " " }} {{- $content := .content }}