MarginaliaSearch/code/services-application/search-service/resources/templates/search/site-info/site-info-feed.hdb
Viktor Lofgren b8e0dc93d7 (search) Correctly show the feeds view when items are present
... otherwise show samples.   This commit also removes the (Experimental) bit, as this is getting fairly mature.
2024-11-09 17:56:43 +01:00

22 lines
579 B
Plaintext

{{#if feed.items}}
{{#with feed}}
<h2><a title="Atom/RSS feed" target="external" href="{{feedUrl}}"><img width="16" height="16" src="/rss.svg"></a> Feed</h2>
<dl>
{{#each items}}
<dt><a href="{{url}}" rel="external noopener ugc">{{title}}</a></dt>
<dd><date>{{pubDay}}</date><br>{{{descriptionSafe}}}</dd>
{{/each}}
</dl>
{{/with}}
{{/if}}
{{#unless feed.items}}{{#if samples}}
<h2>Sample</h2>
<dl>
{{#each samples}}
<dt><a href="{{url}}" rel="external noopener ugc">{{title}}</a></dt>
<dd>{{description}}</dd>
{{/each}}
</dl>
{{/if}}{{/unless}}