aggregate enclosures
authorJoey Hess <joeyh@joeyh.name>
Sat, 25 Dec 2021 16:58:24 +0000 (12:58 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sat, 25 Dec 2021 16:59:27 +0000 (12:59 -0400)
commit7591cf777606064f0bea86779be334e35b5737d2
treef90507692b8b7f187fc72e67c477fdb23c904595
parente8432b28accf3326d00363c911fa6166321c3a80
aggregate enclosures

aggregate: When a feed has an enclosure that is an image, audio, or video,
include the enclosure in the generated page.

The enclosure is hotlinked from the original feed, not copied.

My use case is to include a mastodon rss feed in amoung other rss feeds for
users who don't use mastodon. It could also be used to aggregate together
podcasts, etc.

Other enclosure types than image, audio, video, could be added, perhaps
a generic one? But these are the main ones.

The template uses 50% width for image and video, because often
attachments are in a high resolution, which will default to being
perhaps too wide for the page, or taking up a lot of vertical space. By
making it take up at most half the page width, that is avoided, while
also leaving room for any sidebar.

Sponsored-by: Shae Erisson on Patreon
CHANGELOG
IkiWiki/Plugin/aggregate.pm
templates/aggregatepost.tmpl