hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit addec6d1f65e91dd4c3a1b04d8e32056af5a5ebd
parent 7eb9907ef2edf5493e83ca621bb848820f287fb1
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Wed, 24 Apr 2019 23:37:03 -0400

Use relative url for translations

Diffstat:
Mlayouts/partials/navigation_bar.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/navigation_bar.html b/layouts/partials/navigation_bar.html
@@ -4,7 +4,7 @@
     <li>&nbsp;<a href="{{ .URL | relURL }}">{{ .Name }}</a>&nbsp;</li>
     {{- end -}}
     {{- range .Translations -}}
-    <li>&nbsp;<a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>&nbsp;</li>
+    <li>&nbsp;<a href="{{ .URL | relURL }}">{{ .Site.Language.LanguageName }}</a>&nbsp;</li>
     {{- end -}}
   </ul>
 </nav>