2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Exposed site SEO data through Conent API & {{@site.*}} helper (#10925)

refs #10921

- Site SEO data will now be available as part of `GET /settings` response in Content API as well as part of {{@site.*}} helper
This commit is contained in:
Naz Gargol 2019-07-19 10:40:47 +02:00 committed by GitHub
parent 97afc8aa28
commit c3a80f112a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -18,5 +18,13 @@ module.exports = {
active_timezone: 'timezone',
ghost_head: 'ghost_head',
ghost_foot: 'ghost_foot',
navigation: 'navigation'
navigation: 'navigation',
meta_title: 'meta_title',
meta_description: 'meta_description',
og_image: 'og_image',
og_title: 'og_title',
og_description: 'og_description',
twitter_image: 'twitter_image',
twitter_title: 'twitter_title',
twitter_description: 'twitter_description'
};

View file

@ -43,6 +43,7 @@ describe('Settings Content API', function () {
// Verify we have the right keys for settings
settings.should.have.properties(_.values(publicSettings));
Object.keys(settings).length.should.equal(22);
// Verify that we are returning the defaults for each value
_.forEach(settings, (value, key) => {