2019-08-09 19:41:24 +05:30
|
|
|
const ghostVersion = require('../../lib/ghost-version');
|
|
|
|
const settingsCache = require('../../services/settings/cache');
|
2020-05-28 05:57:02 -05:00
|
|
|
const urlUtils = require('../../../shared/url-utils');
|
2019-08-09 19:41:24 +05:30
|
|
|
|
|
|
|
const site = {
|
|
|
|
docName: 'site',
|
|
|
|
|
|
|
|
read: {
|
|
|
|
permissions: false,
|
|
|
|
query() {
|
2020-04-27 15:15:56 +01:00
|
|
|
const response = {
|
2019-08-09 19:41:24 +05:30
|
|
|
title: settingsCache.get('title'),
|
2020-04-17 15:00:31 +05:30
|
|
|
description: settingsCache.get('description'),
|
|
|
|
logo: settingsCache.get('logo'),
|
2020-06-24 00:33:57 +12:00
|
|
|
accent_color: settingsCache.get('accent_color'),
|
2019-08-09 19:41:24 +05:30
|
|
|
url: urlUtils.urlFor('home', true),
|
2020-04-30 19:50:40 +01:00
|
|
|
version: ghostVersion.safe
|
2019-08-09 19:41:24 +05:30
|
|
|
};
|
2020-04-27 15:15:56 +01:00
|
|
|
|
|
|
|
return response;
|
2019-08-09 19:41:24 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = site;
|