diff options
author | Jan Raasch <425211+janraasch@users.noreply.github.com> | 2023-03-15 13:01:49 +0100 |
---|---|---|
committer | Jan Raasch <425211+janraasch@users.noreply.github.com> | 2023-03-15 13:01:49 +0100 |
commit | 5fb7b332564c19f95e93cf675a9fd1e4a66a9fbd (patch) | |
tree | e22dfe45d59575c077458f97ec01977a2e44c2a9 /layouts/_default | |
parent | 63484fa54a06f0f0ee44eb13d96274409935633b (diff) | |
download | hugo-bearcub-5fb7b332564c19f95e93cf675a9fd1e4a66a9fbd.tar.gz hugo-bearcub-5fb7b332564c19f95e93cf675a9fd1e4a66a9fbd.tar.bz2 |
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
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8b8c14b..90cbee5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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"> |