Skip to content

Commit a409125

Browse files
committed
Add Known Feeds to feed page
1 parent 63b9260 commit a409125

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/pages/feeds-pages.njk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,21 @@ Feed may not be JSON compliant due to {{ feed._defective }}
8282
No Modules found!
8383
</div>
8484
{% endif %}
85+
86+
<h2>Known Feeds:</h2>
87+
88+
{% if (feed.knownFeeds | length) !== 1 %}
89+
<ul>
90+
{% for feedName, feedUrl in feed.knownFeeds %}
91+
<li>
92+
<a href="{{ ["/feeds/" , (feedUrl | toFeedIdentifier), "/"] | join | url }}">{{ feedName }}</a>
93+
<a role="button" class="badge btn btn-secondary" href="{{ ["/feeds/" , ( feedUrl | toFeedIdentifier ), "/"] | join | url }}">{{ feedUrl | toFeedIdentifier }}</a>
94+
</li>
95+
{% endfor %}
96+
</ul>
97+
{% else %}
98+
<div class="alert alert-secondary" role="alert">
99+
This Feed links to no other feeds.
100+
</div>
101+
{% endif %}
102+

0 commit comments

Comments
 (0)