Skip to content

Commit

Permalink
theme(fix): check if empty post exist before using it
Browse files Browse the repository at this point in the history
closes #1141
  • Loading branch information
davidsneighbour committed Aug 19, 2024
1 parent de977c8 commit 9d74f35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

<div class="row">
<div class="col-12 snap-align-start snap-y mb-5">
{{- partials.Include "content/post.html" (collections.Index $first 0) -}}
{{- with (collections.Index $first 0) -}}
{{- partials.Include "content/post.html" . -}}
{{- end -}}
</div>
</div>

Expand Down

0 comments on commit 9d74f35

Please sign in to comment.