From 7053df09e3873dd79f0b85903e30369976f15fe2 Mon Sep 17 00:00:00 2001
From: weru <onewesh@gmail.com>
Date: Fri, 20 Mar 2020 15:42:15 +0000
Subject: [PATCH] update template

---
 layouts/partials/nav.html      |   10 +++++++++-
 layouts/partials/document.html |    5 +++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/layouts/partials/document.html b/layouts/partials/document.html
index 0f6fd7e..d9e3f5a 100644
--- a/layouts/partials/document.html
+++ b/layouts/partials/document.html
@@ -2,7 +2,8 @@
   <div>
     {{- partial "sidebar.html" . }}
   </div>
-  <div class="content">
+  <section class="content">
+    <h1>{{ .Title }}</h1>
     {{- .Content }}
     <div class="pager">
       {{- with .Next }}
@@ -12,5 +13,5 @@
       <a href="{{ .Permalink }}" id="next">{{ .Title }}</a>
       {{- end }}
     </div>
-  </div>
+  </section>
 </div>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 2fc5ac5..971f9a6 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,5 +1,13 @@
 <nav class="wrap nav">
-	<a href="{{ .Site.BaseURL }}"><img src='{{ absURL "images/compose.svg" }}'>
+	<a href="{{ .Site.BaseURL }}">
+		<picture>
+			{{- $logos := .Site.Params.logo }}
+			{{- $normalPath := absURL (printf "images/%s" $logos.lightMode) }}
+			{{- $darkPath := absURL (printf "images/%s" $logos.darkMode) }}
+			
+			<source srcset = '{{ $darkPath }}' media="(prefers-color-scheme: dark)">
+			<img srcset = '{{ $normalPath }}' alt = '{{ .Site.Title }} Logo'>
+		</picture>
 	</a>
 	{{- partial "search.html" . }}
 	<ul class="nav_body">

--
Gitblit v1.10.0