Skip to content

Commit

Permalink
fill out code for pubdate, add indicator for draft posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue Doe committed Nov 4, 2024
1 parent efc24bc commit 1a848c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
<li>
<span>
<i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate='{{ .PublishDate.Format "2006-01-02" }}'>
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
</time>
</i>
</span>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}{{ if .Draft }}*{{ end }}</a>
</li>
{{ else }}
<li>
Expand Down

0 comments on commit 1a848c7

Please sign in to comment.