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 }}