From 7b2be419298b015bb44a8d821dcd0f0f5d470c7c Mon Sep 17 00:00:00 2001 From: parsiya Date: Sun, 22 Apr 2018 01:36:04 -0400 Subject: [PATCH] Remove redundant post template and move it to single.html --- layouts/_default/single.html | 27 +++++++++++++++++++++++++++ layouts/post/single.html | 27 --------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 layouts/post/single.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e69de29..994cbd7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -0,0 +1,27 @@ +{{ partial "header.html" . }} + +
+
+
+
+ + {{ .Scratch.Set "isHome" false }} + {{ partial "post_header.html" . }} + +
+ + {{ $.Scratch.Set "pagetoc" .TableOfContents }} + + {{ if or (and (isset .Params "toc") (eq .Params.toc true)) (and (not (isset .Params "toc")) (eq .Site.Params.tableOfContents true)) }} + {{ $.Scratch.Get "pagetoc" }} + {{ end }} + {{ .Content }} +
+ {{ partial "post_footer.html" . }} +
+
+ {{ partial "sidebar.html" . }} +
+
+ +{{ partial "footer.html" . }} diff --git a/layouts/post/single.html b/layouts/post/single.html deleted file mode 100644 index 994cbd7..0000000 --- a/layouts/post/single.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ partial "header.html" . }} - -
-
-
-
- - {{ .Scratch.Set "isHome" false }} - {{ partial "post_header.html" . }} - -
- - {{ $.Scratch.Set "pagetoc" .TableOfContents }} - - {{ if or (and (isset .Params "toc") (eq .Params.toc true)) (and (not (isset .Params "toc")) (eq .Site.Params.tableOfContents true)) }} - {{ $.Scratch.Get "pagetoc" }} - {{ end }} - {{ .Content }} -
- {{ partial "post_footer.html" . }} -
-
- {{ partial "sidebar.html" . }} -
-
- -{{ partial "footer.html" . }}