Refactor main feed to need fewer templates
Add configuration properties to minimize the number of templates needed to generate the different audio format feeds.
This commit is contained in:
parent
17ef26642a
commit
6d4f5f28c9
11
site.cfg
11
site.cfg
@ -134,15 +134,20 @@ content: content-sitemap.tpl.html
|
|||||||
|
|
||||||
[hpr_ogg]
|
[hpr_ogg]
|
||||||
root_template: rss.tpl.xml
|
root_template: rss.tpl.xml
|
||||||
content: rss-hpr_ogg.tpl.xml
|
content: rss-hpr.tpl.xml
|
||||||
filename: hpr_ogg.rss
|
filename: hpr_ogg.rss
|
||||||
|
media_file_extension: ogg
|
||||||
|
|
||||||
[hpr_mp3]
|
[hpr_mp3]
|
||||||
root_template: rss.tpl.xml
|
root_template: rss.tpl.xml
|
||||||
content: rss-hpr_mp3.tpl.xml
|
content: rss-hpr.tpl.xml
|
||||||
filename: hpr_mp3.rss
|
filename: hpr_mp3.rss
|
||||||
|
media_file_extension: mp3
|
||||||
|
audio_mime_type: mpeg
|
||||||
|
|
||||||
[hpr_spx]
|
[hpr_spx]
|
||||||
root_template: rss.tpl.xml
|
root_template: rss.tpl.xml
|
||||||
content: rss-hpr_spx.tpl.xml
|
content: rss-hpr.tpl.xml
|
||||||
filename: hpr_spx.rss
|
filename: hpr_spx.rss
|
||||||
|
media_file_extension: spx
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--% PROCESS 'shared-item.tpl.xml' %-->
|
<!--% PROCESS 'shared-item.tpl.xml' %-->
|
||||||
<!--% PROCESS 'rss-query-hpr.tpl.xml' %-->
|
<!--% PROCESS 'rss-query-hpr.tpl.xml' %-->
|
||||||
<!--% FOREACH episode IN feed_result %-->
|
<!--% FOREACH episode IN feed_result %-->
|
||||||
<!--% display_item(episode, 'mp3', 'mpeg') %-->
|
<!--% display_item(episode, media_file_extension, audio_mime_type) %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
@ -1,5 +0,0 @@
|
|||||||
<!--% PROCESS 'shared-item.tpl.xml' %-->
|
|
||||||
<!--% PROCESS 'rss-query-hpr.tpl.xml' %-->
|
|
||||||
<!--% FOREACH episode IN feed_result %-->
|
|
||||||
<!--% display_item(episode, 'ogg') %-->
|
|
||||||
<!--% END %-->
|
|
@ -1,5 +0,0 @@
|
|||||||
<!--% PROCESS 'shared-item.tpl.xml' %-->
|
|
||||||
<!--% PROCESS 'rss-query-hpr.tpl.xml' %-->
|
|
||||||
<!--% FOREACH episode IN feed_result %-->
|
|
||||||
<!--% display_item(episode, 'spx') %-->
|
|
||||||
<!--% END %-->
|
|
Loading…
Reference in New Issue
Block a user