rss tweaks

This commit is contained in:
dreamer 2026-03-26 14:36:26 +01:00
parent 5c7626db66
commit 42ebff2c7c
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ app:get("/latest.json", function(self)
return handlers.Latesthandler(self) return handlers.Latesthandler(self)
end) end)
app:get("/latest.rss", function(self) app:get("/latest.xml", function(self)
self.titles = page_titles self.titles = page_titles
return handlers.RSShandler(self) return handlers.RSShandler(self)
end) end)

View File

@ -3,8 +3,8 @@
<channel> <channel>
<atom:link href="https://<%= titles['url'] %>/latest.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://<%= titles['url'] %>/latest.xml" rel="self" type="application/rss+xml" />
<title>Hotmixes</title> <title><%= titles['name'] %></title>
<link><%= titles['url'] %></link> <link>https://<%= titles['url'] %></link>
<description>Latest uploads</description> <description>Latest uploads</description>
<% for i, file in ipairs(latestpath) do %> <% for i, file in ipairs(latestpath) do %>
<item> <item>