Add a post's category to the right of the list item
This commit is contained in:
parent
61b6f361d2
commit
e18e207530
2 changed files with 9 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue