mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-08 21:45:32 +08:00
links: ignore local markdown links linking to files with extension #707
This commit is contained in:
parent
589ef2040d
commit
4a0417b4b0
@ -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…
x
Reference in New Issue
Block a user