about summary refs log tree commit diff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-29 17:33:12 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-29 17:33:12 +0700
commit8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119 (patch)
tree4dd87c1ca0f2ebc2a459395ee10a3547db3be106 /layouts/partials/header.html
parent5f84f18c24b3bf64768befad82823a59c26e65d5 (diff)
downloadvictor-8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119.tar.gz
Support multilingual
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d015389..7b35a2a 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,3 +1,6 @@
 <nav>
-	<a href="/" >{{ .Site.Title }}</a>
+	<a href="{{ .Site.Home.RelPermalink | absLangURL }}" >{{ .Site.Title }}</a>
+	{{ range .Site.Menus.main }}
+	<a href="{{ .URL | absLangURL }}">{{ .Title }}</a>
+	{{ end }}
 </nav>