fix: remove trailing slashes
Guess what, on https://gohugo.io/functions/relurl/ it says > As a best practice, never include a leading slash when using this function. Fixes https://github.com/janraasch/hugo-bearblog/issues/65
This commit is contained in:
parent
63484fa54a
commit
5fb7b33256
@ -3,7 +3,7 @@
|
|||||||
{{ if .Data.Singular }}
|
{{ if .Data.Singular }}
|
||||||
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||||||
<small>
|
<small>
|
||||||
<a href="{{ "/blog" | relURL }}">Remove filter</a>
|
<a href="{{ "blog" | relURL }}">Remove filter</a>
|
||||||
</small>
|
</small>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<ul class="blog-posts">
|
<ul class="blog-posts">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<a href="{{ "/" | relURL }}" class="title">
|
<a href="{{ "" | relURL }}" class="title">
|
||||||
<h2>{{ .Site.Title }}</h2>
|
<h2>{{ .Site.Title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
<nav>{{- partial "nav.html" . -}}</nav>
|
<nav>{{- partial "nav.html" . -}}</nav>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<a href="{{ "/" | relURL }}">Home</a>
|
<a href="{{ "" | relURL }}">Home</a>
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.GetPage "/blog" }}
|
{{ with .Site.GetPage "/blog" }}
|
||||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
<a href="{{ "blog" | relURL }}">Blog</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user