From 76c251066fd34a26734bf1acdb1e041881e1c0af Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 25 Nov 2018 13:30:25 +0100 Subject: Refactor templates and partials --- layouts/posts/baseof.html | 2 +- layouts/posts/list.html | 10 ++++++---- layouts/posts/single.html | 6 ++++-- 3 files changed, 11 insertions(+), 7 deletions(-) (limited to 'layouts/posts') diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index 47371c0..fa97ee3 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -16,4 +16,4 @@ {{ template "_internal/google_analytics_async.html" . }} - \ No newline at end of file + diff --git a/layouts/posts/list.html b/layouts/posts/list.html index da13220..97873dd 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -5,14 +5,16 @@

{{ .Title }}

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

- {{ .Summary }} + {{- .Summary -}} {{ if .Truncated }} - ... + ... {{ end }}

{{ end }} {{ template "_internal/pagination.html" . }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 9081faa..6b0712e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,9 +1,11 @@ {{ define "main" }}

{{ .Title }}

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