From 80695973ac0e3dd9a846f055d43fe3969b711144 Mon Sep 17 00:00:00 2001
From: Bjørn Erik Pedersen
Date: Tue, 25 Jul 2017 10:18:25 +0200
Subject: Fix disqusShortname conditional
Fixes #43
---
layouts/_default/single.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'layouts/_default')
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 96c9f94..2a8e053 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,7 +9,7 @@
{{ .Content }}
- {{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
+ {{ if .Site.Params.disqusShortname }}
-
-
{{ .Title }}
- {{ .Date.Format "Mon, Jan 2, 2006" }}
- {{ .Content }}
-
+
+
+
{{ .Title }}
+ {{ .Date.Format "Mon, Jan 2, 2006" }}
+ {{ .Content }}
+
{{ if .Site.Params.disqusShortname }}
Comments
@@ -15,5 +15,5 @@
{{ end }}
-
-
+
+
\ No newline at end of file
--
cgit 1.4.1
From 82832c1244f2d536c754efb98fbdb02b1844f4c7 Mon Sep 17 00:00:00 2001
From: digitalcraftsman
Date: Thu, 7 Sep 2017 21:41:16 +0200
Subject: Make use of the base template
---
layouts/404.html | 16 ++++------------
layouts/_default/baseof.html | 8 ++++++++
layouts/_default/list.html | 25 +++++++++----------------
layouts/_default/single.html | 29 +++++++++++------------------
layouts/index.html | 33 ++++++++++-----------------------
5 files changed, 42 insertions(+), 69 deletions(-)
create mode 100644 layouts/_default/baseof.html
(limited to 'layouts/_default')
diff --git a/layouts/404.html b/layouts/404.html
index 8fa1a59..a919514 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,12 +1,4 @@
-{{ partial "head.html" . }}
-
-
-{{ partial "sidebar.html" . }}
-
-
-
404: Page not found
-
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.
-
-
-
-