2006-07-30 06:31:08 +02:00
|
|
|
<TMPL_VAR CONTENT>
|
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
2021-12-25 17:58:24 +01:00
|
|
|
<TMPL_IF ENCLOSUREURL>
|
|
|
|
<TMPL_IF ENCLOSUREIMAGE>
|
|
|
|
<img src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" width="50%" />
|
|
|
|
</TMPL_IF>
|
|
|
|
<TMPL_IF ENCLOSUREAUDIO>
|
|
|
|
<audio controls src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" />
|
|
|
|
</TMPL_IF>
|
|
|
|
<TMPL_IF ENCLOSUREVIDEO>
|
|
|
|
<video controls src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" width="50%" />
|
|
|
|
</TMPL_IF>
|
|
|
|
</TMPL_IF>
|
2010-05-06 03:08:41 +02:00
|
|
|
<TMPL_LOOP TAGS>
|
2008-02-05 22:18:29 +01:00
|
|
|
[[!tag <TMPL_VAR TAG>]]
|
2006-07-30 06:31:08 +02:00
|
|
|
</TMPL_LOOP>
|
2010-05-06 03:08:41 +02:00
|
|
|
<TMPL_IF TITLE>
|
|
|
|
[[!meta title="<TMPL_VAR TITLE ESCAPE=HTML>"]]
|
2006-07-31 00:58:48 +02:00
|
|
|
</TMPL_IF>
|
2010-05-06 03:08:41 +02:00
|
|
|
<TMPL_IF PERMALINK>
|
|
|
|
[[!meta permalink="<TMPL_VAR PERMALINK ESCAPE=HTML>"]]
|
2006-08-04 02:01:51 +02:00
|
|
|
</TMPL_IF>
|
2010-05-06 03:08:41 +02:00
|
|
|
<TMPL_IF COPYRIGHT>
|
|
|
|
[[!meta copyright="<TMPL_VAR COPYRIGHT ESCAPE=HTML>"]]
|
2008-01-09 02:41:25 +01:00
|
|
|
</TMPL_IF>
|
2013-07-17 22:38:08 +02:00
|
|
|
<TMPL_IF AUTHOR>
|
2013-09-05 16:04:38 +02:00
|
|
|
[[!meta author="<TMPL_VAR AUTHOR ESCAPE=HTML> (<TMPL_VAR NAME ESCAPE=HTML>)"]]
|
2013-07-17 22:38:08 +02:00
|
|
|
<TMPL_ELSE>
|
2010-05-06 03:08:41 +02:00
|
|
|
[[!meta author="<TMPL_VAR NAME ESCAPE=HTML>"]]
|
2013-07-17 22:38:08 +02:00
|
|
|
</TMPL_IF>
|
2010-05-06 03:08:41 +02:00
|
|
|
[[!meta authorurl="<TMPL_VAR URL ESCAPE=HTML>"]]
|