aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-16 10:19:04 -0300
committerEuAndreh <eu@euandre.org>2020-08-16 10:19:04 -0300
commiteb7f8a944f994f2d93febe14884a2c7ee736cba5 (patch)
tree968f91684140a7d9cad564cdf49fcf06f928d356
parenti18n: Ajouter le support pour la version française (diff)
downloadeuandre.org-eb7f8a944f994f2d93febe14884a2c7ee736cba5.tar.gz
euandre.org-eb7f8a944f994f2d93febe14884a2c7ee736cba5.tar.xz
Make blog_url dynamic instead of pointing to root which is always english
Diffstat (limited to '')
-rw-r--r--_config.yml4
-rw-r--r--_layouts/default.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml
index 89e3207..d3a99b3 100644
--- a/_config.yml
+++ b/_config.yml
@@ -38,6 +38,10 @@ collections:
permalink: /til/:year/:month/:day/:title:output_ext
t:
+ blog_url:
+ en: "/en/"
+ pt: "/pt/"
+ fr: "/fr/"
about:
en: "About"
pt: "Sobre"
diff --git a/_layouts/default.html b/_layouts/default.html
index 71643b5..de8c726 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -26,7 +26,7 @@
<header>
<nav>
<div id="nav-left">
- <a href="/">&lt;web&gt;EuAndreh&lt;/web&gt;</pre></a>
+ <a href="{{ site.t.blog_url[page.lang] }}">&lt;web&gt;EuAndreh&lt;/web&gt;</pre></a>
</div>
<div id="nav-right">
{% if page.ref != nil %}