forked from deadvey/blogger-nodejs
initial commit
This commit is contained in:
59
config.js
Normal file
59
config.js
Normal file
@@ -0,0 +1,59 @@
|
||||
export const seperator = "<hr/>"
|
||||
export const site_name = "DeaDvey's Blog"
|
||||
export const site_description = "Films, tech, random shit"
|
||||
export const timeline_length = 20
|
||||
export const root_path = "/home/gaming/code/web/blogger"
|
||||
|
||||
// Date format using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
|
||||
export const date_format = 'en-GB';
|
||||
export const date_options = {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: true,
|
||||
timeZone: 'UTC'
|
||||
}
|
||||
|
||||
//// Format /////
|
||||
// The syntax for this is pretty simple
|
||||
// %A - List of tags
|
||||
// %C - Post content
|
||||
// %D - Published date in the format specified by date_format
|
||||
// %E - Edited date in the format specified by date_format
|
||||
// %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
|
||||
// %R - Site wide RSS feed
|
||||
// %S - post seperator as defined by post_seperator
|
||||
// %T - Title
|
||||
// %U - URL the the user (poster)
|
||||
// %Y - Site Name as defined by site_name
|
||||
// %W - Site Description as defined by site_description
|
||||
|
||||
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>
|
||||
%S`
|
||||
|
||||
export const user_post_format = `<h2>%T</h2>
|
||||
<p>%C</p>
|
||||
<i>%A</i><br/>
|
||||
<a href="%L">Permalink</a><br/>
|
||||
%S`
|
||||
export const post_page_format = `<h1>%T</h1>
|
||||
<p>%C</p>
|
||||
<i>%A</i><br/>
|
||||
<i>By <a href="%U">%N</a></i><br/<
|
||||
<i>Posted: %D</i><br/>
|
||||
<i>Edited: %E</i>`
|
||||
export const timeline_post_format = `<h3>%T</h3>
|
||||
<p>%C</p>
|
||||
<a href="%L">Permalink</a><br/>
|
||||
<i>By <a href="%U">%N</a></i>
|
||||
%S`
|
||||
Reference in New Issue
Block a user