Add a post's category to the right of the list item

This commit is contained in:
Eryn Wells 2023-01-30 12:38:25 -08:00
parent 61b6f361d2
commit e18e207530
2 changed files with 9 additions and 2 deletions

View file

@ -2,5 +2,10 @@
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January" }}</time>
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<div class="category">
{{ with index (.GetTerms "categories") 0 }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</div>
{{ partial "development/draft_tag.html" . }}
</li>