Added user specific RSS and ATOM feeds and updated the EJS templates to

add them by default to the user's header section
This commit is contained in:
2025-07-30 01:28:23 +01:00
parent 72316094e4
commit 0cc319a702
8 changed files with 83 additions and 9 deletions

View File

@@ -4,7 +4,8 @@
<h2>
<%- config.site_description %>
</h2>
<a href="<%= config.rss_url %>">RSS Feed</a><br/>
<a href="/rss">RSS Feed</a><br/>
<a href="/atom">ATOM Feed</a><br/>
<a href="<%= config.new_post_url %>">New post</a><br/>
<a href="<%= config.signup_url %>">Sign Up</a><br/>
<% if (config.enable_hitcount == true) { %>

View File

@@ -2,5 +2,7 @@
<%= user.prettyname %>'s posts
</h1>
<p><%- converter.makeHtml(user.description) %></p>
<a href="<%= config.edit_account_base_url %>/<%= userID %>">edit account</a>
<a href="<%= config.edit_account_base_url %>/<%= userID %>">edit account</a><br/>
<a href="/user/<%= user.username %>/rss">RSS</a><br/>
<a href="/user/<%= user.username %>/atom">ATOM</a>
<%- config.seperator %>