From 672a641cec42b4dc2bb6b068d5936c87a10f32e7 Mon Sep 17 00:00:00 2001
From: jackyzha0 <j.zhao2k19@gmail.com>
Date: Sun, 18 Jul 2021 16:06:36 +0000
Subject: [PATCH] fix darkmode
---
layouts/index.html | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index e69de29..5dccbf9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -0,0 +1,22 @@
+{{define "head"}}
+{{ partial "head.html" . }}
+{{end}}
+
+{{define "main"}}
+<!-- Main Page -->
+<div class="singlePage">
+ {{partial "darkmode.html" .}}
+ {{.Content}}
+
+ <!-- Contact Info -->
+ <div class="lt-centre">
+ {{partial "footer.html" .}}
+ </div>
+</div>
+
+{{- with resources.Get "darkmode.js" | minify -}}
+<script>
+ {{.Content | safeJS }}
+</script>
+{{- end -}}
+{{end}}
\ No newline at end of file
--
Gitblit v1.10.0