86 lines
2.4 KiB
JavaScript
86 lines
2.4 KiB
JavaScript
const path = require('path')
|
|
|
|
// get timestamp as deployment directory name
|
|
const get_timestamp = () => String(Math.floor(new Date() / 1000))
|
|
|
|
// static config
|
|
module.exports = {
|
|
/* paths */
|
|
root_dir: get_timestamp(),
|
|
basepath: path.normalize(__dirname + '/..'),
|
|
template_path: 'templates/',
|
|
partials_path: 'components/',
|
|
font_path: 'font/',
|
|
image_path: 'img/',
|
|
css_path: 'css/',
|
|
javascipt: 'js/',
|
|
paths: {
|
|
base: path.normalize(__dirname + '/..'),
|
|
js: 'js',
|
|
css: 'css',
|
|
img: 'img',
|
|
font: 'font',
|
|
templates: 'templates',
|
|
},
|
|
html: {
|
|
pages: [
|
|
{name: 'index', template: 'home', css: ['core', 'home'], js: ['scripts']}
|
|
]
|
|
},
|
|
images: [
|
|
'bg/*.{jpg,png,svg}',
|
|
'content/*.{jpg,png,svg}',
|
|
'menu/*.{jpg,png,svg}',
|
|
'util/*.{jpg,png,svg}',
|
|
],
|
|
/* serviceworker */
|
|
serviceworker: {
|
|
file: 'sw.js',
|
|
statics: ['css/**.css', '**.html', 'img/**/**.{jpg,png,webp,svg}', 'js/**.js']
|
|
},
|
|
/* ftp connection */
|
|
ftp_options: {
|
|
host: 'w00dfcf1.kasserver.com',
|
|
user: 'f00e43cc',
|
|
password: 'UH57MsPPAmXGo3Xm',
|
|
},
|
|
/* ghost */
|
|
ghost: {
|
|
id: 'ghost-admin',
|
|
secret: 'f481cecda9fb',
|
|
username: 'public@asciidisco.com',
|
|
password: 'Bx75q3Vt!',
|
|
host: 'worried-secure.glitch.me',
|
|
},
|
|
/* github */
|
|
github: {
|
|
user: 'asciidisco'
|
|
},
|
|
/* markdown contents */
|
|
mdcontents: {
|
|
pages: [
|
|
{key: 'about-short', url: 'https://raw.githubusercontent.com/asciidisco/about.me/master/README.md'}
|
|
]
|
|
},
|
|
/* RSS/Atom/JSON feed */
|
|
rss: {
|
|
title: 'asciidisco.com Blog',
|
|
description: 'Blog of asciidisco (Sebastian Golasch)',
|
|
id: 'https://stage.asciidisco.com',
|
|
link: 'https://stage.asciidisco.com',
|
|
image: 'https://stage.asciidisco.com/android-chome-512x512.png',
|
|
favicon: 'https://stage.asciidisco.com/favicon.ico',
|
|
copyright: '2018 Sebastian Golasch',
|
|
generator: 'asciidisco.com',
|
|
feedLinks: {
|
|
json: 'https://stage.asciidisco.com/feed.json',
|
|
atom: 'https://stage.asciidisco.com/feed.atom',
|
|
},
|
|
author: {
|
|
name: 'Sebastian Golasch',
|
|
email: 'public@asciidisco.com',
|
|
link: 'https://stage.asciidisco.com',
|
|
},
|
|
categories: ['Technology','JavaScript','Web','Python','Rust','React Native'],
|
|
}
|
|
} |