Fix: rss feed

This commit is contained in:
hyzen
2026-06-21 01:29:09 +05:30
parent fd88efaeee
commit 35f1ce2a6a
2 changed files with 4 additions and 2 deletions

View File

@@ -66,4 +66,4 @@ Academics is good only as a concept. It’s implementation and system is
<h2 class="heading" id="follow-on">
Follow on<span class="heading__anchor"> <a href="#follow-on">#</a></span>
</h2><p><strong><a href="https://mastodon.social/@hyzen">Mastodon</a>:</strong> <a href="mailto:hyzen@mastodon.social">hyzen@mastodon.social</a></p>
&lt;p&gt;&lt;strong&gt;Lemmy:&lt;/strong&gt; &lt;a href="mailto:hyzen@lemmy.today"&gt;hyzen@lemmy.today&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Login</title><link>https://freedoms4.org/login/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><author>your-email@example.com (Freedoms4)</author><guid>https://freedoms4.org/login/</guid><description/></item><item><title>Sign Up</title><link>https://freedoms4.org/signup/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><author>your-email@example.com (Freedoms4)</author><guid>https://freedoms4.org/signup/</guid><description/></item></channel></rss>
&lt;p&gt;&lt;strong&gt;Lemmy:&lt;/strong&gt; &lt;a href="mailto:hyzen@lemmy.today"&gt;hyzen@lemmy.today&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>

View File

@@ -38,9 +38,11 @@
{{- else }}
{{- $pages = $pctx.Pages }}
{{- end }}
{{- /* Exclude uninotes pages and the admin page from the feed */}}
{{- /* Exclude uninotes pages, admin, login, and signup from the feed */}}
{{- $pages = where $pages "Section" "ne" "uninotes" }}
{{- $pages = where $pages "RelPermalink" "ne" "/admin/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/login/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/signup/" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = $pages | first $limit }}