hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git
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:
Mlayouts/_default/list.html | 15+++++++++------
Mlayouts/partials/language.html | 4++--
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) }}&nbsp;|&nbsp;{{ 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 }}