From c39138e3c981b345b314836fc1f48a7e4aa5b662 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Sun, 9 Apr 2017 01:23:47 +0200 Subject: [PATCH] Removed duplicated main div, because it is included in single, which imports page and post. --- layouts/partials/page.html | 20 +++++++-------- layouts/partials/post.html | 50 ++++++++++++++++++-------------------- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/layouts/partials/page.html b/layouts/partials/page.html index d1a5b3b..05d75a9 100644 --- a/layouts/partials/page.html +++ b/layouts/partials/page.html @@ -1,14 +1,12 @@ -
-
-
- {{ .Content }} - {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} - {{ if .Site.DisqusShortname }} -
- {{ template "_internal/disqus.html" . }} -
- {{ end }} +
+
+ {{ .Content }} + {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} + {{ if .Site.DisqusShortname }} +
+ {{ template "_internal/disqus.html" . }} +
{{ end }} -
+ {{ end }}
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 970b5fa..70595ea 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,31 +1,29 @@ -
-
-
-
- {{ .Content }} -
+
+
+
+ {{ .Content }} +
- - - {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} - {{ if .Site.DisqusShortname }} -
- {{ template "_internal/disqus.html" . }} -
- {{ end }} + + + {{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }} + {{ if .Site.DisqusShortname }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} + {{ end }} -