mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
links: ignore local markdown links linking to files with extension #707
This commit is contained in:
parent
589ef2040d
commit
4a0417b4b0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $url = urls.Parse $url }}
|
{{- $url = urls.Parse $url }}
|
||||||
{{- if and $url.Path (not (strings.HasSuffix $url.Path ".html")) (not (strings.HasSuffix $url.Path ".md")) }}
|
{{- if and $url.Path (not (path.Ext $url.Path)) }}
|
||||||
{{- /* ignore old style links with given extension */}}
|
{{- /* ignore old style links with given extension */}}
|
||||||
{{- $found := false }}
|
{{- $found := false }}
|
||||||
{{- $fragment := "" }}
|
{{- $fragment := "" }}
|
||||||
|
|
Loading…
Reference in a new issue