From aa2b1870d0f1af84171c60df233b9befa8817853 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 25 Nov 2018 11:59:42 +0100 Subject: Cleanup posts rendering --- layouts/posts/baseof.html | 6 ++---- layouts/posts/list.html | 2 -- layouts/posts/single.html | 16 +++++++--------- 3 files changed, 9 insertions(+), 15 deletions(-) (limited to 'layouts') diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index 5601fb4..47371c0 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -8,10 +8,8 @@ -
-
- {{ template "main" . }} -
+
+ {{ template "main" . }}
{{ partial "docs/inject/body" . }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 4fda83f..da13220 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,5 +1,4 @@ {{ define "main" }} -
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }}
@@ -16,5 +15,4 @@
{{ end }} {{ template "_internal/pagination.html" . }} -
{{ end }} \ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html index f31b1a9..9081faa 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,11 +1,9 @@ {{ define "main" }} -
-
-

{{ .Title }}

-
{{ .Date.Format "January 2, 2006" }}
-
-
- {{- .Content -}} -
-
+
+

{{ .Title }}

+
{{ .Date.Format "January 2, 2006" }}
+
+
+ {{- .Content -}} +
{{ end }} \ No newline at end of file -- cgit v1.2.3