edit mode

This commit is contained in:
2025-07-09 20:09:50 +01:00
parent b6d47711b4
commit d23268fe89
4 changed files with 64 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ export const site_name = "Deadvey's Blog"
export const site_url = "https://deadvey.com"
export const site_description = "Films, tech, random shit"
export const timeline_length = 20
export const charset = "UTF-8" // Don't change unless you know why
// Anything in this directory will be in the webroot, so put favicon.ico and anything else here.
export const root_path = "/var/www/deadvey.com/blog"
@@ -17,6 +18,7 @@ export const time_zone = "+0000"
//// Format /////
// The syntax for this is pretty simple
// %% - A literal %
// %A - List of tags
// %B - List of tags, each one with a hyperlink to that tag page
// %C - Post content
@@ -28,7 +30,7 @@ export const time_zone = "+0000"
// %L - URL Permanent link to the post
// %N - the username of the user (poster)
// %P - URL to create a new post
// %O - URL to edit a post
// %O - URL to edit this post
// %R - Site wide RSS feed
// %S - post seperator as defined by post_seperator
// %T - Title
@@ -39,7 +41,6 @@ export const time_zone = "+0000"
export const timeline_header = `<h1>%Y</h1>
<h2>%W</h2>
<a href="%P">Create Post</a><br/>
<a href="%O">Edit Post</a><br/>
<a href="%R">RSS Feed</a><br/>
%S`
export const user_page_header = `<h1>%F's posts:</h1>
@@ -55,7 +56,8 @@ export const user_post_format = `<h2>%T</h2>
export const post_page_format = `<h1>%T</h1>
<p>%C</p>
<i>%B</i><br/>
<i>By <a href="%U">%N</a></i><br/<
<i>By <a href="%U">%N</a></i><br/>
<a href="%O">Edit Post</a><br/>
<i>Posted: %D</i><br/>
<i>Edited: %E</i>`
export const timeline_post_format = `<h3>%T</h3>