links: ignore local markdown links linking to files with extension #707

This commit is contained in:
Sören Weber 2023-10-30 19:05:59 +01:00
parent 589ef2040d
commit 4a0417b4b0
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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 := "" }}