From 37763868caff133f08ad4a6cccc28447e680598e Mon Sep 17 00:00:00 2001 From: Marcin Mierzejewski Date: Tue, 29 Sep 2020 09:32:46 +0200 Subject: [PATCH] posts: add space bewteen posts (thanks @igufi for patch) --- layouts/_default/list.html | 8 +++++--- layouts/index.html | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c01818a..17fc6b8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,9 +7,11 @@ {{ range sort .Data.Pages "Date" "desc" }} {{ if not .Params.private }}
-
{{ .PublishDate.Format "Jan. 2, 2006" }}
-

{{ .Title }}

- {{ .Summary }} +

+

{{ .PublishDate.Format "Jan. 2, 2006" }}
+

{{ .Title }}

+ {{ .Summary }} +

{{ end }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index a8e3bed..bf34291 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,9 +13,11 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons {{ with .Site.GetPage "/posts" }} {{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}}
-
{{ .PublishDate.Format "Jan. 2, 2006" }}
-

{{ .Title }}

- {{ .Summary }} +

+

{{ .PublishDate.Format "Jan. 2, 2006" }}
+

{{ .Title }}

+ {{ .Summary }} +

{{ end }} {{ end }}