mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
tabs: warn if internal link targets will be detected falsly #681
This commit is contained in:
parent
842b96ef57
commit
16eb8efcac
1 changed files with 3 additions and 0 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue