fix: handle no posts
This commit is contained in:
parent
431e776004
commit
314d8cd5a4
@ -31,6 +31,7 @@
|
|||||||
<div>
|
<div>
|
||||||
|
|
||||||
<!-- orders content according to the "publishdate" field in front matter -->
|
<!-- orders content according to the "publishdate" field in front matter -->
|
||||||
|
{{ with .Site.Data.personalize.PostLimit }}
|
||||||
{{ range first .Site.Data.personalize.PostLimit .Pages.ByPublishDate }}
|
{{ range first .Site.Data.personalize.PostLimit .Pages.ByPublishDate }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a><br />
|
<a href="{{ .Permalink }}">{{ .Title }}</a><br />
|
||||||
@ -38,6 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<h3><a href="posts/">View all posts</a></h3>
|
<h3><a href="posts/">View all posts</a></h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user