hugo-djem-so

Hugo theme for my blog

git clone git://git.shimmy1996.com/hugo-djem-so.git
commit 780e6f92eb6687afb02dd3eedaf8d8fd83eb7b28
parent 0a262a5093847485ab0e362afca176bcfe0ed513
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun, 29 Mar 2020 01:17:07 -0500

Rearrange header and nav

Diffstat:
Mlayouts/_default/baseof.html | 8++++----
Mlayouts/partials/nav.html | 4++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
@@ -2,12 +2,12 @@
 <html lang="{{ .Site.Language }}">
   {{ partial "head.html" . }}
   <body>
+    {{ partial "nav.html" . }}
     <main>
+      <header>
+        <h1>{{ .Title }}</h1>
+      </header>
       <article>
-        <header>
-          <h1>{{ .Title }}</h1>
-          {{ partial "nav.html" . }}
-        </header>
         {{ .Content }}
         {{ block "extras" . }}{{ end }}
       </article>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
@@ -1,4 +1,4 @@
-<nav><p>
+<nav>
   {{ if .IsHome }}
   {{- range $i, $menu := .Site.Menus.main -}}
   {{- if (ge $i 1) }}&nbsp;|&nbsp;{{ end -}}
@@ -10,4 +10,4 @@
   {{- range .Translations -}}
   &nbsp;|&nbsp;<a href="{{ .Permalink | relURL }}">{{ .Language.LanguageName }}</a>
   {{- end -}}
-</p></nav>
+</nav>