commit 1bfbc33381fbc0944571f3a90c39bab89d5c7449
parent bb9da4a94534272b2c1a734ae7740aef4bddbf45
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Tue, 26 Jul 2022 23:06:33 -0500
Update nav bar format
Diffstat:
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,11 +1,14 @@
{{ define "main" }}
-<nav>{{ partial "nav_page.html" . }}</nav>
<nav>
- {{- range $i, $menu := .Site.Menus.main -}}
- {{- if (ge $i 1) }} | {{ end -}}
- <a href="{{ .URL | relURL }}">{{ .Name }}</a>
- {{- end -}}
- {{ partial "language.html" . }}
+ <span class="menu">
+ {{ range $i, $menu := .Site.Menus.main }}
+ <a class="entry" href="{{ .URL | relURL }}">{{ .Name }}</a>
+ {{ end }}
+ {{ partial "language.html" . }}
+ </span>
+ <span class="menu-right">
+ {{ partial "nav_page.html" . }}
+ </span>
</nav>
<main class="h-feed">
{{ $pag := partial "get_paginator.html" . }}
diff --git a/layouts/partials/language.html b/layouts/partials/language.html
@@ -1,3 +1,3 @@
-{{- range (sort .Translations ".Language.LanguageName") -}}
+{{ range (sort .Translations ".Language.LanguageName") }}
<a class="entry" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a>
-{{- end -}}
+{{ end }}