Skip to content

Commit

Permalink
Show author of a post in the feed list
Browse files Browse the repository at this point in the history
IMHO it is interesting to see the author of an entry right in the list.
Truncated to 35 characters as the feed title is.
  • Loading branch information
mcnesium authored and Marc Löchner committed Apr 27, 2022
1 parent ab3fdf5 commit d4144b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions template/templates/common/item_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d4144b2

Please sign in to comment.