mirror of
https://github.com/christian1701/hugo-theme-console.git
synced 2025-11-03 05:59:23 +01:00
posts: add space bewteen posts (thanks @igufi for patch)
This commit is contained in:
@@ -7,9 +7,11 @@
|
|||||||
{{ range sort .Data.Pages "Date" "desc" }}
|
{{ range sort .Data.Pages "Date" "desc" }}
|
||||||
{{ if not .Params.private }}
|
{{ if not .Params.private }}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
<p>
|
||||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
||||||
{{ .Summary }}
|
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||||
|
{{ .Summary }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -13,9 +13,11 @@ 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>
|
||||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
||||||
{{ .Summary }}
|
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||||
|
{{ .Summary }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user