From 8f15c5f8c1a0650d3c757f8cdf8ea12e4128ee97 Mon Sep 17 00:00:00 2001
From: meleu <meleu@users.noreply.github.com>
Date: Sun, 03 Apr 2022 19:22:32 +0000
Subject: [PATCH] disable ToC if enableToc: false
---
layouts/404.html | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/layouts/404.html b/layouts/404.html
index 232fada..deec3eb 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -7,16 +7,10 @@
{{partial "darkmode.html" .}}
<div class="centered">
<h1>404.</h1>
- <h3>Hey! You look a little lost.</h3>
+ <h3>Hey! You look a little lost. This page doesn't exist (or may be private).</h3>
<a href="/">↳ Let's get you home.</a>
</div>
</div>
-
-{{- with resources.Get "darkmode.js" | minify -}}
-<script>
- {{.Content | safeJS }}
-</script>
-{{- end -}}
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.10.0