ugghhhh new site_path config option

This commit is contained in:
2026-05-30 20:05:01 +01:00
parent 6e7d2109c8
commit f11b94527d
23 changed files with 91 additions and 89 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
<div id="post-header">
<h2>
<a href='<%= config.site_url %>/post/<%= post['id'] %>'><%= post.title %></a>
<a href='<%= config.site_path %>/post/<%= post['id'] %>'><%= post.title %></a>
</h2>
</div>
@@ -15,7 +15,7 @@
</div>
<div id="post-details">
<span id="post-author">
<i><%= locale.written_by %> <a href="<%= config.site_url %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
<i><%= locale.written_by %> <a href="<%= config.site_path %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
</span>
-
<span id="post-pubdate">
@@ -25,8 +25,8 @@
<i><%= locale.last_modified %>: <%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
</div>
<div id="post-edit">
<a href="<%= config.site_url %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_url %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
<a href="<%= config.site_path %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_path %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/>
</div>
<% if (config.enable_hitcount == true) { %>
@@ -40,7 +40,7 @@
<div id="post-commentform">
<!-- Comment form -->
<form method="POST" action="<%= config.site_url %>/submit_comment">
<form method="POST" action="<%= config.site_path %>/submit_comment">
<input type="hidden" name="post_index" value="<%= post["id"] %>">
<label><%= locale.username %>:</label><br/><input name="name"><br/><br/>
<label><%= locale.comment %>:</label><br/><textarea name="content"></textarea><br/>
+3 -3
View File
@@ -1,6 +1,6 @@
<div id="post-header">
<h2>
<a href='<%= config.site_url %>/post/<%= post['id'] %>'><%= post.title %></a>
<a href='<%= config.site_path %>/post/<%= post['id'] %>'><%= post.title %></a>
</h2>
</div>
@@ -15,7 +15,7 @@
</div>
<div id="post-details">
<span id="post-author">
<i><a href="<%= config.site_url %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
<i><a href="<%= config.site_path %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
</span>
-
<span id="post-pubdate">
@@ -24,7 +24,7 @@
<br/>
<div id="post-edit">
<a href="<%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_url %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
<img class='icon' src='<%= config.site_path %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/>
</div>
</div>
+6 -6
View File
@@ -1,6 +1,6 @@
<div id="post-header">
<h2>
<a href='<%= config.site_url %>/post/<%= post['id'] %>'><%= post.title %></a>
<a href='<%= config.site_path %>/post/<%= post['id'] %>'><%= post.title %></a>
</h2>
</div>
@@ -15,11 +15,11 @@
</div>
<div id="post-details">
<span id="post-author">
<i><a href="<%= config.site_url %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
<i><a href="<%= config.site_path %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
</span>
-
<a if='edit-account-link' href="<%= config.site_url %><%= config.edit_account_base_url %>/<%= user.id %>">
<img class='icon' src='<%= config.site_url %>/icons/edit.png' alt='<%= locale.edit_account %>' title='<%= locale.edit_account %>'>
<a if='edit-account-link' href="<%= config.site_path %><%= config.edit_account_base_url %>/<%= user.id %>">
<img class='icon' src='<%= config.site_path %>/icons/edit.png' alt='<%= locale.edit_account %>' title='<%= locale.edit_account %>'>
</a>
-
<span id="post-pubdate">
@@ -27,8 +27,8 @@
</span>
<br/>
<div id="post-edit">
<a href="<%= config.site_url %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_url %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
<a href="<%= config.site_path %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_path %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/>
</div>
</div>
+4 -4
View File
@@ -1,6 +1,6 @@
<div id="post-header">
<h2>
<a href='<%= config.site_url %>/post/<%= post['id'] %>'><%= post.title %></a>
<a href='<%= config.site_path %>/post/<%= post['id'] %>'><%= post.title %></a>
</h2>
</div>
@@ -15,7 +15,7 @@
</div>
<div id="post-details">
<span id="post-author">
<i><a href="<%= config.site_url %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
<i><a href="<%= config.site_path %>/user/<%= user.username %>"><%= user.prettyname %></a></i>
</span>
-
<span id="post-pubdate">
@@ -23,8 +23,8 @@
</span>
<br/>
<div id="post-edit">
<a href="<%= config.site_url %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_url %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
<a href="<%= config.site_path %><%= config.edit_post_base_url %>/<%= post["id"] %>">
<img class='icon' src='<%= config.site_path %>/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/>
</div>
</div>