hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit e8dd1c1e8aebbddeba7199682c36400cd2d4cff5
parent 1d7864b56a438b688b41ae3dd604036eb4d6e853
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jun 2018 10:21:36 -0500

Use i18n_fallback partial to parse title.

Diffstat:
Mlayouts/partials/header.html | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -6,13 +6,7 @@
   {{ partial "favicon.html" . }}
   {{ partial "stylesheet.html" . }}
   {{ partial "katex.html" . }}
-  {{ $title := i18n (lower .Title) }}
-  {{ if eq $title "" }}
-    <title>{{.Title}} | {{.Site.Title}}</title>
-  {{else}}
-    <title>{{$title}} | {{.Site.Title}}</title>
-  {{end}}
-
+  <title>{{ partial "i18n_fallback" .Title}} | {{.Site.Title}}</title>
 </head>
 <body>
 {{ partial "navigation_bar.html" . }}