diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-20 12:00:11 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-20 12:00:11 +0300 |
commit | 16c49c87d139b42cf985c1fab69ecdb02206959c (patch) | |
tree | 6fbcd438908a2dfb2964c3f641b00e787427b5a4 | |
parent | ca03368e561aae5117820433a2780af20723e079 (diff) |
Use relURL function to generate URLs
-rw-r--r-- | layouts/partials/header-menu.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/header-menu.html b/layouts/partials/header-menu.html index f769487..8bcdea4 100644 --- a/layouts/partials/header-menu.html +++ b/layouts/partials/header-menu.html @@ -1,4 +1,4 @@ <ul> - <li><a href="{{ .Site.BaseURL }}about">{{ i18n "about" }}</a></li> - <li><a href="{{ .Site.BaseURL }}">{{ i18n "posts" }}</a></li> + <li><a href="{{ "about" | relURL }}">{{ i18n "about" }}</a></li> + <li><a href="{{ "/" | relURL }}">{{ i18n "posts" }}</a></li> </ul>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 401f2f4..487be9d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@ <nav class="nav"> <div class="nav-container"> - <a href="{{ .Site.BaseURL }}"> + <a href="{{ "/" | relURL }}"> <h2 class="nav-title">{{ .Site.Title }}</h2> </a> {{ partial "header-menu.html" . }} |