Remove .html from URLs
This commit is contained in:
parent
fb01daeb1e
commit
dcfa770f2c
3 changed files with 4 additions and 4 deletions
|
@ -14,9 +14,9 @@
|
|||
</i>
|
||||
</span>
|
||||
{{ if .Params.link }}
|
||||
<a href="{{ .Params.link }}" target="_blank">{{ .Title }} ↪</a>
|
||||
<a href="{{ .Params.link | replaceRE "\\.html$" "" }}" target="_blank">{{ .Title }} ↪</a>
|
||||
{{ else }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<a href="{{ .RelPermalink | replaceRE "\\.html$" "" }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ else }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue