atom functionality is added and I fixed an issue in the RSS that is
caused by the deleted posts not having valid data.
This commit is contained in:
@@ -17,7 +17,7 @@ Read the [configuation guide](docs/CONFIG.md) for configuration help (in config.
|
|||||||
* post creation via the web frontend (no need to remote to your server to make a post)
|
* post creation via the web frontend (no need to remote to your server to make a post)
|
||||||
* multi user
|
* multi user
|
||||||
* powerful customisation
|
* powerful customisation
|
||||||
* rss
|
* rss, atom
|
||||||
* timeline, user page, post page and tag specific page
|
* timeline, user page, post page and tag specific page
|
||||||
* edit/delete posts
|
* edit/delete posts
|
||||||
* hitcount
|
* hitcount
|
||||||
@@ -33,7 +33,6 @@ Read the [configuation guide](docs/CONFIG.md) for configuration help (in config.
|
|||||||
|
|
||||||
# Planned features/todo list
|
# Planned features/todo list
|
||||||
* user specific RSS feeds
|
* user specific RSS feeds
|
||||||
* atom
|
|
||||||
* federation (looks tricky)
|
* federation (looks tricky)
|
||||||
* All strings (including in edit and post page) customisable
|
* All strings (including in edit and post page) customisable
|
||||||
* formatable custom strings
|
* formatable custom strings
|
||||||
|
@@ -5,4 +5,18 @@
|
|||||||
<description><%= config.site_description %></description>
|
<description><%= config.site_description %></description>
|
||||||
<updated><%= new Date() %></updated>
|
<updated><%= new Date() %></updated>
|
||||||
<id><%= config.site_url %></id>
|
<id><%= config.site_url %></id>
|
||||||
|
<% for (let postID = posts.length-1; postID >= 0; postID--) { %>
|
||||||
|
<% if (posts[postID]["deleted"] != true) { %>
|
||||||
|
<entry>
|
||||||
|
<title><%= posts[postID]["title"] %></title>
|
||||||
|
<link><%= config.site_url %>/post/<%= postID %></link>
|
||||||
|
<summary><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></summary>
|
||||||
|
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
|
||||||
|
<pubDate><%# func.unix_time_to_atom_date(posts[postID]['pubdate']) %></pubDate>
|
||||||
|
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>
|
||||||
|
<category><![CDATA[<%= posts[postID]['tags'][tag_index] %>]]></category>
|
||||||
|
<% } %>
|
||||||
|
</entry>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
</feed>
|
</feed>
|
||||||
|
@@ -5,10 +5,11 @@
|
|||||||
<link><%= config.site_url %></title>
|
<link><%= config.site_url %></title>
|
||||||
<description><%= config.site_description %></description>
|
<description><%= config.site_description %></description>
|
||||||
<% for (let postID = posts.length-1; postID >= 0; postID--) { %>
|
<% for (let postID = posts.length-1; postID >= 0; postID--) { %>
|
||||||
|
<% if (posts[postID]["deleted"] != true) { %>
|
||||||
<item>
|
<item>
|
||||||
<title><%= posts[postID]["title"] %></title>
|
<title><%= posts[postID]["title"] %></title>
|
||||||
<link><%= config.site_url %>/post/<%= postID %></link>
|
<link><%= config.site_url %>/post/<%= postID %></link>
|
||||||
<description><![CDATA[<%= converter.makeHtml(posts[postID]["content"]) %>]]></description>
|
<description><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></description>
|
||||||
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
|
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
|
||||||
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
|
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
|
||||||
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>
|
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>
|
||||||
@@ -16,5 +17,6 @@
|
|||||||
<% } %>
|
<% } %>
|
||||||
</item>
|
</item>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% } %>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
Reference in New Issue
Block a user