From dd317883be6b521f51f7c6179bf0a0566e862538 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sat, 30 May 2026 18:34:18 +0100 Subject: [PATCH] fixed issues with site urls not being a site root (hopefully) --- views/forms/edit_account.ejs | 4 ++-- views/forms/edit_post.ejs | 2 +- views/forms/new_post.ejs | 2 +- views/forms/signup.ejs | 2 +- views/headers/site_wide.ejs | 18 +++++++++--------- views/headers/user.ejs | 12 ++++++------ views/indexes/all_pages.ejs | 22 +++++++++++----------- views/indexes/comments.ejs | 2 +- views/indexes/posts.ejs | 2 +- views/indexes/users.ejs | 2 +- views/partials/comment.ejs | 2 +- views/partials/footer.ejs | 2 +- views/partials/head.ejs | 4 ++-- views/posts/post.ejs | 10 +++++----- views/posts/tag.ejs | 6 +++--- views/posts/timeline.ejs | 12 ++++++------ views/posts/user.ejs | 8 ++++---- 17 files changed, 56 insertions(+), 56 deletions(-) diff --git a/views/forms/edit_account.ejs b/views/forms/edit_account.ejs index 686af52..5ab96f6 100644 --- a/views/forms/edit_account.ejs +++ b/views/forms/edit_account.ejs @@ -1,10 +1,10 @@ - <%- include("../partials/head") %> -
+


diff --git a/views/forms/edit_post.ejs b/views/forms/edit_post.ejs index 5db1c1f..72429aa 100644 --- a/views/forms/edit_post.ejs +++ b/views/forms/edit_post.ejs @@ -4,7 +4,7 @@ <%- include("../partials/head") %> - + diff --git a/views/forms/new_post.ejs b/views/forms/new_post.ejs index 2b2362c..8ff7420 100644 --- a/views/forms/new_post.ejs +++ b/views/forms/new_post.ejs @@ -4,7 +4,7 @@ <%- include('../partials/head.ejs') %> - +


diff --git a/views/forms/signup.ejs b/views/forms/signup.ejs index 3fb32e3..c76c7fc 100644 --- a/views/forms/signup.ejs +++ b/views/forms/signup.ejs @@ -4,7 +4,7 @@ <%- include("../partials/head") %> - +


diff --git a/views/headers/site_wide.ejs b/views/headers/site_wide.ejs index e1f0a1e..97d091e 100644 --- a/views/headers/site_wide.ejs +++ b/views/headers/site_wide.ejs @@ -1,28 +1,28 @@ -<%= locale.home_page %> +<%= locale.home_page %> / <% if (config.rss == true) { %> - - <%= locale.rss_feed %> + + <%= locale.rss_feed %> <% } %> <% if (config.atom == true) { %> - - <%= locale.atom_feed %> + + <%= locale.atom_feed %> <% } %> / -<%= locale.new_post %> +<%= locale.new_post %> / <% if (config.allow_signup == true) { %> - <%= locale.sign_up %> + <%= locale.sign_up %> <% } %> / - +

-

<%= config.site_name %>

+

<%= config.site_name %>

<%- config.site_description %>

diff --git a/views/headers/user.ejs b/views/headers/user.ejs index f7bb625..2c128c9 100644 --- a/views/headers/user.ejs +++ b/views/headers/user.ejs @@ -4,14 +4,14 @@

<%- func.render_md(user.description) %>

- - <%= locale.edit_account %> + + <%= locale.edit_account %> | - - <%= locale.rss_feed %> + + <%= locale.rss_feed %> - - <%= locale.atom_feed %> + + <%= locale.atom_feed %> <%- config.seperator %> diff --git a/views/indexes/all_pages.ejs b/views/indexes/all_pages.ejs index 53cfdcf..f02e3d9 100644 --- a/views/indexes/all_pages.ejs +++ b/views/indexes/all_pages.ejs @@ -5,41 +5,41 @@ Misc:
- Home Page
- New Post Form
- Signup Form
+ Home Page
+ New Post Form
+ Signup Form
Indexes:
- Posts Index
- Users Index
- Comments Index
+ Posts Index
+ Users Index
+ Comments Index
Posts:
<% for (let postID = 0; postID < posts.length; postID++) { %> <% if (posts[postID]["deleted"] != true) { %> - <%= posts[postID]["title"] %>
+ <%= posts[postID]["title"] %>
<% }; %> <% }; %> Comments:
<% for (let postID = 0; postID < comments.length; postID++) { %> <% for (let comment_index = 0; comment_index < comments[postID]['comments'].length; comment_index++) { %> - <%= postID %>-<%= comment_index %>
+ <%= postID %>-<%= comment_index %>
<% }; %> <% }; %> Users:
<% for (let userID = 0; userID < users.length; userID++) { %> <% if (users[userID]["deleted"] != true) { %> - "><%= users[userID]["username"] %>
+ "><%= users[userID]["username"] %>
<% }; %> <% }; %> Edit Posts:
<% for (let postID = 0; postID < posts.length; postID++) { %> <% if (posts[postID]["deleted"] != true) { %> - Edit <%= posts[postID]["title"] %>
+ Edit <%= posts[postID]["title"] %>
<% }; %> <% }; %> Edit Users:
<% for (let userID = 0; userID < users.length; userID++) { %> <% if (users[userID]["deleted"] != true) { %> - ">Edit <%= users[userID]["username"] %>
+ ">Edit <%= users[userID]["username"] %>
<% }; %> <% }; %> diff --git a/views/indexes/comments.ejs b/views/indexes/comments.ejs index 25399d5..1e064f6 100644 --- a/views/indexes/comments.ejs +++ b/views/indexes/comments.ejs @@ -6,7 +6,7 @@ <% for (let postID = 0; postID < comments.length; postID++) { %> <% for (let comment_index = 0; comment_index < comments[postID]['comments'].length; comment_index++) { %> - <%= postID %>-<%= comment_index %>
+ <%= postID %>-<%= comment_index %>
<% }; %> <% }; %> diff --git a/views/indexes/posts.ejs b/views/indexes/posts.ejs index f38db27..fdf2116 100644 --- a/views/indexes/posts.ejs +++ b/views/indexes/posts.ejs @@ -6,7 +6,7 @@ <% for (let postID = 0; postID < posts.length; postID++) { %> <% if (posts[postID]["deleted"] != true) { %> - <%= posts[postID]["title"] %>
+ <%= posts[postID]["title"] %>
<% }; %> <% }; %> diff --git a/views/indexes/users.ejs b/views/indexes/users.ejs index 503e222..d868d8e 100644 --- a/views/indexes/users.ejs +++ b/views/indexes/users.ejs @@ -6,7 +6,7 @@ <% for (let userID = 0; userID < users.length; userID++) { %> <% if (users[userID]["deleted"] != true) { %> - "><%= users[userID]["username"] %>
+ "><%= users[userID]["username"] %>
<% }; %> <% }; %> diff --git a/views/partials/comment.ejs b/views/partials/comment.ejs index 6bf1b1d..a9dd610 100644 --- a/views/partials/comment.ejs +++ b/views/partials/comment.ejs @@ -5,7 +5,7 @@ <%= func.unix_time_to_date_format(comment.pubdate) %> - No. <%= postID %>-<%= comment.id %>:
+ No. <%= postID %>-<%= comment.id %>:
<%- func.render_comment(comment.content) %> diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs index a0bc463..0e1b0fe 100644 --- a/views/partials/footer.ejs +++ b/views/partials/footer.ejs @@ -1,4 +1,4 @@ -<%= locale.site_index %>
+<%= locale.site_index %>
<%= locale.site_ran_by %> <%= config.site_admin %>
<%- locale.attribution %>
<%= locale.AI_consent %> diff --git a/views/partials/head.ejs b/views/partials/head.ejs index df9da08..5eca890 100644 --- a/views/partials/head.ejs +++ b/views/partials/head.ejs @@ -5,5 +5,5 @@ - - + + diff --git a/views/posts/post.ejs b/views/posts/post.ejs index c882528..f61a0ee 100644 --- a/views/posts/post.ejs +++ b/views/posts/post.ejs @@ -1,6 +1,6 @@

- '><%= post.title %> + '><%= post.title %>

@@ -15,7 +15,7 @@
- <%= locale.written_by %> <%= user.prettyname %> + <%= locale.written_by %> <%= user.prettyname %> - @@ -25,8 +25,8 @@ <%= locale.last_modified %>: <%= func.unix_time_to_date_format(post.pubdate) %>
- "> - <%= locale.edit_post %> + "> + <%= locale.edit_post %>
<% if (config.enable_hitcount == true) { %> @@ -40,7 +40,7 @@
-
+ ">




diff --git a/views/posts/tag.ejs b/views/posts/tag.ejs index a2959c6..bcd1f8a 100644 --- a/views/posts/tag.ejs +++ b/views/posts/tag.ejs @@ -1,6 +1,6 @@

- '><%= post.title %> + '><%= post.title %>

@@ -15,7 +15,7 @@
- <%= user.prettyname %> + <%= user.prettyname %> - @@ -24,7 +24,7 @@
"> - <%= locale.edit_post %> + <%= locale.edit_post %>
diff --git a/views/posts/timeline.ejs b/views/posts/timeline.ejs index 58a8b15..6f61b5c 100644 --- a/views/posts/timeline.ejs +++ b/views/posts/timeline.ejs @@ -1,6 +1,6 @@

- '><%= post.title %> + '><%= post.title %>

@@ -15,11 +15,11 @@
- <%= user.prettyname %> + <%= user.prettyname %> - - - <%= locale.edit_account %> + + <%= locale.edit_account %> - @@ -27,8 +27,8 @@
- "> - <%= locale.edit_post %> + "> + <%= locale.edit_post %>
diff --git a/views/posts/user.ejs b/views/posts/user.ejs index a2959c6..5c69c4f 100644 --- a/views/posts/user.ejs +++ b/views/posts/user.ejs @@ -1,6 +1,6 @@

- '><%= post.title %> + '><%= post.title %>

@@ -15,7 +15,7 @@
- <%= user.prettyname %> + <%= user.prettyname %> - @@ -23,8 +23,8 @@
- "> - <%= locale.edit_post %> + "> + <%= locale.edit_post %>