forked from deadvey/blogger-nodejs
hitcount
This commit is contained in:
13
config.js
13
config.js
@@ -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 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 = "/var/www/deadvey.com/blog"
|
||||
@@ -26,6 +27,7 @@ export const time_zone = "+0000"
|
||||
// %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
|
||||
// %N - the username of the user (poster)
|
||||
@@ -37,11 +39,13 @@ export const time_zone = "+0000"
|
||||
// %U - URL the the user (poster)
|
||||
// %Y - Site Name as defined by site_name
|
||||
// %W - Site Description as defined by site_description
|
||||
// %Z - Attribution (to me) and source code link and license
|
||||
|
||||
export const timeline_header = `<h1>%Y</h1>
|
||||
<h2>%W</h2>
|
||||
<a href="%P">Create Post</a><br/>
|
||||
<a href="%R">RSS Feed</a><br/>
|
||||
Hit count: %H
|
||||
%S`
|
||||
export const user_page_header = `<h1>%F's posts:</h1>
|
||||
%I
|
||||
@@ -59,7 +63,8 @@ export const post_page_format = `<h1>%T</h1>
|
||||
<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>`
|
||||
<i>Edited: %E</i>
|
||||
%S`
|
||||
export const timeline_post_format = `<h3>%T</h3>
|
||||
<p>%C</p>
|
||||
<a href="%L">Permalink</a><br/>
|
||||
@@ -71,6 +76,9 @@ export const tag_post_format = `<h3>%T</h3>
|
||||
<a href="%L">Permalink</a><br/>
|
||||
<i>By <a href="%U">%N</a></i>
|
||||
%S`
|
||||
// -------------------------------------
|
||||
export const site_wide_footer = `Site is ran by DeaDvey<br/>
|
||||
%Z`
|
||||
|
||||
|
||||
/// Custom CSS to be applied to every page
|
||||
@@ -123,3 +131,6 @@ export const css = `
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
// pretty please don't change this
|
||||
export const attribution = "Powered by blogger-nodejs: <a href='https://git.javalsai.tuxcord.net/deadvey/blogger-nodejs'>Source Code</a>, <a href='https://git.javalsai.tuxcord.net/deadvey/blogger-nodejs/raw/branch/master/LICENSE'>license (WTFPL)</a>"
|
||||
|
||||
Reference in New Issue
Block a user