Skip to content

Commit

Permalink
fix(post): handle the case where there is no description
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Jun 28, 2023
1 parent e88fcef commit 0bb5f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<li class="archive__list-item">
<a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">
{{ .Title }}
<small> - {{ .Description }}</small>
{{ if .Description }}
<small> - {{ .Description }}</small>
{{ end }}
</a>
<div class="archive__list-date">
{{ if isset .Site.Params "listdateformat" }}
Expand Down

0 comments on commit 0bb5f54

Please sign in to comment.