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:
Jan Raasch 2023-03-15 13:01:49 +01:00
parent 63484fa54a
commit 5fb7b33256
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
{{ if .Data.Singular }}
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
<small>
<a href="{{ "/blog" | relURL }}">Remove filter</a>
<a href="{{ "blog" | relURL }}">Remove filter</a>
</small>
{{ end }}
<ul class="blog-posts">