Compare commits

...

2 Commits

Author SHA1 Message Date
72316094e4 Updated the readme to have a better feature section 2025-07-30 01:12:29 +01:00
47877e71d4 atom functionality is added and I fixed an issue in the RSS that is
caused by the deleted posts not having valid data.
2025-07-30 01:09:51 +01:00
3 changed files with 24 additions and 11 deletions

View File

@@ -14,26 +14,22 @@ See the software in action: [deadvey.com](https://deadvey.com)<br/>
Read the [configuation guide](docs/CONFIG.md) for configuration help (in config.json)
# Features
* post creation via the web frontend (no need to remote to your server to make a post)
* post creation, modification and deletion via frontend
* user creation, modification and deletion via frontend
* multi user
* powerful customisation
* rss
* timeline, user page, post page and tag specific page
* edit/delete posts
* powerful customisation via EJS
* site wide rss, atom
* hitcount
* Markdown syntax in posts
* Commenting on posts
* sign up and delete account
* ejs
* custom CSS _file_
* site wide custom CSS
# Bugs
* probably scales like shit
* probably insecure as hell
# Planned features/todo list
* user specific RSS feeds
* atom
* user specific RSS/atom feeds
* federation (looks tricky)
* All strings (including in edit and post page) customisable
* formatable custom strings
@@ -42,6 +38,7 @@ Read the [configuation guide](docs/CONFIG.md) for configuration help (in config.
* comment pages?
* /postID and /userID pages
* site index
* Make EJS modification more user friendly
TODO (not finished)
# EJS variable names

View File

@@ -5,4 +5,18 @@
<description><%= config.site_description %></description>
<updated><%= new Date() %></updated>
<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>

View File

@@ -5,10 +5,11 @@
<link><%= config.site_url %></title>
<description><%= config.site_description %></description>
<% for (let postID = posts.length-1; postID >= 0; postID--) { %>
<% if (posts[postID]["deleted"] != true) { %>
<item>
<title><%= posts[postID]["title"] %></title>
<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>
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>
@@ -16,5 +17,6 @@
<% } %>
</item>
<% } %>
<% } %>
</channel>
</rss>