diff options
author | Jan Willem B <git@janwillemboer.nl> | 2019-04-28 19:16:13 +0300 |
---|---|---|
committer | Fabien <vaga@users.noreply.github.com> | 2019-04-29 10:41:25 +0300 |
commit | 1c4623ad308c021d7f403cb514ca81c4335eec39 (patch) | |
tree | 1bf096eaa2bc67a34d10fb2b7d0c30c4419bc481 | |
parent | 52f635605cfd231c627fd8a6cabba196dc6a6ff8 (diff) |
added BaseUrl to avatar anchor
This fixes a bug that clicking the avatar will bring you to the wrong URL if the site isn't deployed in the root path.
-rw-r--r-- | layouts/_default/baseof.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 542130a..02c0892 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ </head> <body> <header class="app-header"> - <a href="/"><img class="app-header-avatar" src="{{ .Site.BaseURL }}/avatar.jpg" alt="{{ .Site.Params.author | default "John Doe" }}" /></a> + <a href="{{ .Site.BaseURL }}"><img class="app-header-avatar" src="{{ .Site.BaseURL }}/avatar.jpg" alt="{{ .Site.Params.author | default "John Doe" }}" /></a> <h1>{{ .Site.Title }}</h1> <p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p> <div class="app-header-social"> |