diff options
author | EuAndreh <eu@euandre.org> | 2020-08-16 10:19:04 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-16 10:19:04 -0300 |
commit | eb7f8a944f994f2d93febe14884a2c7ee736cba5 (patch) | |
tree | 968f91684140a7d9cad564cdf49fcf06f928d356 | |
parent | i18n: Ajouter le support pour la version française (diff) | |
download | euandre.org-eb7f8a944f994f2d93febe14884a2c7ee736cba5.tar.gz euandre.org-eb7f8a944f994f2d93febe14884a2c7ee736cba5.tar.xz |
Make blog_url dynamic instead of pointing to root which is always english
-rw-r--r-- | _config.yml | 4 | ||||
-rw-r--r-- | _layouts/default.html | 2 |
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="/"><web>EuAndreh</web></pre></a> + <a href="{{ site.t.blog_url[page.lang] }}"><web>EuAndreh</web></pre></a> </div> <div id="nav-right"> {% if page.ref != nil %} |