commit 8a09d2ea126a4fcf2e239d558bb08a184dd2fcb0
parent 20b98db5ae1033e6d6c0e395661cf9053fbd608f
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 23 Jun 2018 20:31:32 -0500
Manually enforce spacing for navigation menus to ensure page looks the same after minifying.
Diffstat:
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/layouts/partials/i18n_fallback.html b/layouts/partials/i18n_fallback.html
@@ -1,6 +1,6 @@
{{ $translation := i18n (lower .) }}
{{ if eq $translation "" }}
{{ if eq . (lower .)}} {{ . | humanize }} {{ else }} {{ . }} {{ end }}
-{{else}}
+{{ else }}
{{ $translation }}
-{{end}}
+{{ end }}
diff --git a/layouts/partials/navigation_bar.html b/layouts/partials/navigation_bar.html
@@ -1,11 +1,12 @@
<nav>
<ul class="menu">
- {{ range .Site.Menus.main }}
- <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
- {{ end }}
- {{ range .Translations }}
- <li><a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a></li>
- {{ end }}
+  
+ {{- range .Site.Menus.main -}}
+ <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> 
+ {{- end -}}
+ {{- range .Translations -}}
+ <li><a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a></li> 
+ {{- end -}}
</ul>
</nav>
<hr/>