mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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 }}
|
||||
{{- else }}
|
||||
{{- $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 */}}
|
||||
{{- $found := false }}
|
||||
{{- $fragment := "" }}
|
||||
|
|
Loading…
Reference in a new issue