Files
blogger-nodejs/CONFIG.md
2025-07-20 22:47:07 +01:00

3.7 KiB
Executable File

export const seperator = "


" export const site_name = "My Blog" export const site_url = "https://example.com" export const port = 8080 export const allow_signup = true export const site_description = "Read my blogs!" export const timeline_length = 20 export const enable_hitcount = true // Can slow down page loading a bit 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 = "/path/to/root/of/website"

// Default username if no username is inputted in comment submission export const default_username = "Anon"

// RSS feeds export const rss = true export const rss_path = "/rss"

// Dates // https://date-fns.org/v4.1.0/docs/format export const date_format = "yyyy-MM-dd" 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 // %D - Published date in the format specified by date_format // %E - Edited date in the format specified by date_format // %F - Pretty name // %G - Tag name (used for the tag page only) // %H - Frontpage hit count // %I - User description // %L - URL Permanent link to the post // %M - comments // %N - the username of the user (poster) // %O - URL to edit this post // %P - URL to create a new post // %Q - URL to sign up // %R - Site wide RSS feed // %S - post seperator as defined by post_seperator // %T - Title // %U - URL the the user (poster) // %W - Site Description as defined by site_description // %X - Comment submission box // %Y - Site Name as defined by site_name // %Z - Attribution (to me) and source code link and license

export const timeline_header = `

%Y

%W

Create Post
RSS Feed
Sign Up
Delete Account
Hit count: %H %S` export const user_page_header = `

%F's posts:

%I %S` export const tag_page_header = `

Posts tagged: %G

%S` // --------------------------------------------- export const user_post_format = `

%T

%C

%B
Permalink
%X %M %S` export const post_page_format = `

%T

%C

%B
By %N
Edit Post
Posted: %D
Edited: %E %S %X %M %S` export const timeline_post_format = `

%T

%C

Permalink
By %N %X %M %S` export const tag_post_format = `

%T

%C

%B
Permalink
By %N %S` // ------------------------------------- export const site_wide_footer = `Site is ran by DeaDvey
%Z`

// Custom Strings export const signup_agreement = "I agree to not post illegal or hateful content" export const signups_unavailable = "Sorry, this server does not allow signups" export const user_exists = "Sorry, this user already exists, try a different username" export const user_doesnt_exist = "Sorry, this user does not exist" export const delete_account_confirmation = "I agree that my account and all of my posts will be permanently deleted instantly" export const incorrect_password = "Incorrect Password"

/// Custom CSS to be applied to every page export const css = /* Put you custom CSS here, Read about existing classes and ID's in the docs (coming soon)*\

// pretty please don't change this export const attribution = "Powered by blogger-nodejs: Source Code, license (WTFPL)"