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:
parent
36d4597a80
commit
644a12bcac
1 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@ 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>
|
||||
<p><div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
{{ .Summary }}
|
||||
{{ .Summary }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -37,4 +37,4 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons
|
|||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue