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/partials/header.html | |
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/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e47df70..9bb5112 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ -<a href="{{ "/" | relURL }}" class="title"> +<a href="{{ "" | relURL }}" class="title"> <h2>{{ .Site.Title }}</h2> </a> <nav>{{- partial "nav.html" . -}}</nav> |