Show author of a post in the feed list

IMHO it is interesting to see the author of an entry right in the list.
Truncated to 35 characters as the feed title is.
This commit is contained in:
mcnesium 2022-04-27 18:28:57 +02:00
parent ab3fdf509f
commit 317a4d642a
No known key found for this signature in database
GPG Key ID: 7D6CC73E428F633F
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@
<li>
<a href="{{ route "feedEntries" "feedID" .entry.Feed.ID }}" title="{{ .entry.Feed.SiteURL }}" data-feed-link="true">{{ truncate .entry.Feed.Title 35 }}</a>
</li>
{{ if .entry.Author }}
<li>
<em>{{ truncate .entry.Author 35 }}</em>
</li>
{{ end }}
<li>
<time datetime="{{ isodate .entry.Date }}" title="{{ isodate .entry.Date }}">{{ elapsed .user.Timezone .entry.Date }}</time>
</li>