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>
|
</i>
|
||||||
</span>
|
</span>
|
||||||
{{ if .Params.link }}
|
{{ if .Params.link }}
|
||||||
<a href="{{ .Params.link }}" target="_blank">{{ .Title }} ↪</a>
|
<a href="{{ .Params.link | replaceRE "\\.html$" "" }}" target="_blank">{{ .Title }} ↪</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink | replaceRE "\\.html$" "" }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</content>
|
</content>
|
||||||
<p>
|
<p>
|
||||||
{{ range (.GetTerms "tags") }}
|
{{ range (.GetTerms "tags") }}
|
||||||
<a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a>
|
<a class="blog-tags" href="{{ .RelPermalink | replaceRE "\\.html$" "" }}">#{{ lower .LinkTitle }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
{{ if not .Params.hideReply }}
|
{{ if not .Params.hideReply }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ range .Site.Menus.main.ByWeight }}
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL | replaceRE "\\.html$" "" }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a href='{{ absURL "index.xml" }}'>RSS</a>
|
<a href='{{ absURL "index.xml" }}'>RSS</a>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue