(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.
This commit is contained in:
Viktor Lofgren 2024-11-09 17:49:48 +01:00
parent d774c39031
commit b8e0dc93d7

View File

@ -1,5 +1,6 @@
{{#if feed.items}}
{{#with feed}} {{#with feed}}
<h2><a title="Atom/RSS feed" target="external" href="{{feedUrl}}"><img width="16" height="16" src="/rss.svg"></a> Feed (Experimental)</h2> <h2><a title="Atom/RSS feed" target="external" href="{{feedUrl}}"><img width="16" height="16" src="/rss.svg"></a> Feed</h2>
<dl> <dl>
{{#each items}} {{#each items}}
@ -8,8 +9,9 @@
{{/each}} {{/each}}
</dl> </dl>
{{/with}} {{/with}}
{{/if}}
{{#unless feed}}{{#if samples}} {{#unless feed.items}}{{#if samples}}
<h2>Sample</h2> <h2>Sample</h2>
<dl> <dl>
{{#each samples}} {{#each samples}}