Wraps the front page post summaries in paragraph-tags

Unless you use <!--more--> at the end of a paragraph break, the post summaries are stacked together with no vertical whitespace between them. Adding the <p>-tags fixes this.
This commit is contained in:
igufi 2020-09-28 10:34:33 +03:00 committed by GitHub
parent 36d4597a80
commit 644a12bcac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,9 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons
{{ with .Site.GetPage "/posts" }} {{ with .Site.GetPage "/posts" }}
{{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}} {{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}}
<div class="post"> <div class="post">
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div> <p><div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1> <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
{{ .Summary }} {{ .Summary }}</p>
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}