tabs: warn if internal link targets will be detected falsly #681

This commit is contained in:
Sören Weber 2023-10-10 19:36:59 +02:00
parent 842b96ef57
commit 16eb8efcac
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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 }} {{- 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 }} {{- end }}
{{- $url := .url }} {{- $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 := .title | default "" }}
{{- $title = trim $title " " }} {{- $title = trim $title " " }}
{{- $content := .content }} {{- $content := .content }}