2013-05-11 20:44:25 +04:00
|
|
|
// # Ghost Configuration
|
|
|
|
|
|
|
|
/**
|
|
|
|
* global module
|
|
|
|
**/
|
|
|
|
(function () {
|
|
|
|
"use strict";
|
|
|
|
|
2013-06-15 19:50:28 +04:00
|
|
|
var path = require('path'),
|
|
|
|
config;
|
|
|
|
|
2013-05-11 20:44:25 +04:00
|
|
|
/**
|
|
|
|
* @module config
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
2013-06-15 19:50:28 +04:00
|
|
|
config = {};
|
2013-05-11 20:44:25 +04:00
|
|
|
|
|
|
|
// ## Admin settings
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {string} defaultLang
|
|
|
|
*/
|
|
|
|
config.defaultLang = 'en';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {boolean} forceI18n
|
|
|
|
*/
|
|
|
|
config.forceI18n = true;
|
|
|
|
|
|
|
|
// ## Themes
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {string} themeDir
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Themes
|
|
|
|
config.themeDir = 'themes';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {string} activeTheme
|
|
|
|
*/
|
|
|
|
config.activeTheme = 'casper';
|
|
|
|
|
|
|
|
// ## Homepage settings
|
|
|
|
/**
|
|
|
|
* @module homepage
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
config.homepage = {};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {number} features
|
|
|
|
*/
|
|
|
|
config.homepage.features = 1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property {number} posts
|
|
|
|
*/
|
|
|
|
config.homepage.posts = 4;
|
|
|
|
|
2013-05-17 01:16:09 +04:00
|
|
|
config.database = {
|
2013-05-20 08:23:23 +04:00
|
|
|
testing: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-06-15 19:50:28 +04:00
|
|
|
filename: path.join(__dirname, '/core/shared/data/tests.db')
|
2013-05-20 08:23:23 +04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-05-29 22:26:08 +04:00
|
|
|
travis: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-06-15 19:50:28 +04:00
|
|
|
filename: path.join(__dirname, '/core/shared/data/tests.db')
|
2013-06-01 18:47:41 +04:00
|
|
|
}
|
|
|
|
// debug: true
|
2013-05-29 22:26:08 +04:00
|
|
|
},
|
|
|
|
|
2013-05-17 01:16:09 +04:00
|
|
|
development: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-06-15 19:50:28 +04:00
|
|
|
filename: path.join(__dirname, '/core/shared/data/testdb.db')
|
2013-05-21 05:03:35 +04:00
|
|
|
},
|
2013-05-28 01:03:13 +04:00
|
|
|
debug: false
|
|
|
|
// debug: true
|
2013-05-17 01:16:09 +04:00
|
|
|
},
|
|
|
|
|
|
|
|
staging: {},
|
|
|
|
|
|
|
|
production: {}
|
|
|
|
};
|
|
|
|
|
2013-05-27 23:27:41 +04:00
|
|
|
/**
|
|
|
|
* @property {Array} nav
|
|
|
|
*/
|
|
|
|
config.nav = [{
|
|
|
|
title: 'Home',
|
|
|
|
url: '/'
|
|
|
|
}, {
|
|
|
|
title: 'Admin',
|
|
|
|
url: '/ghost'
|
|
|
|
}];
|
|
|
|
|
2013-05-11 20:44:25 +04:00
|
|
|
/**
|
|
|
|
* @property {Object} exports
|
|
|
|
*/
|
|
|
|
module.exports = config;
|
2013-06-15 03:39:27 +04:00
|
|
|
}());
|