Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-10-20 12:00:11 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-10-20 12:00:11 +0300
commit16c49c87d139b42cf985c1fab69ecdb02206959c (patch)
tree6fbcd438908a2dfb2964c3f641b00e787427b5a4 /layouts
parentca03368e561aae5117820433a2780af20723e079 (diff)
Use relURL function to generate URLs
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header-menu.html4
-rw-r--r--layouts/partials/header.html2
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" . }}