diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-09-29 10:32:46 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-09-29 10:32:46 +0300 |
commit | 37763868caff133f08ad4a6cccc28447e680598e (patch) | |
tree | 4007ecd80e7fee4632e1312b8693c7398663115b | |
parent | 36d4597a80d40e6f7bd4aa427d8bc94b470c0502 (diff) |
posts: add space bewteen posts (thanks @igufi for patch)
-rw-r--r-- | layouts/_default/list.html | 8 | ||||
-rw-r--r-- | 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 }} <div class="post"> - <div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> - <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> - {{ .Summary }} + <p> + <div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> + <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> + {{ .Summary }} + </p> </div> {{ 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))}} <div class="post"> - <div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> - <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> - {{ .Summary }} + <p> + <div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> + <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> + {{ .Summary }} + </p> </div> {{ end }} {{ end }} |