0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Updated theme card asset default setting (#14789)

refs https://github.com/TryGhost/Team/issues/1611

- For Ghost 5.0 card assets will be included by default, including bookmark and gallery cards
This commit is contained in:
Matt Hanley 2022-05-12 14:44:31 +01:00 committed by GitHub
parent 725c2673ea
commit 78d1132b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 14 deletions

View file

@ -1,6 +1,4 @@
{
"posts_per_page": 5,
"card_assets": {
"exclude": ["bookmark", "gallery"]
}
"card_assets": true
}

View file

@ -113,8 +113,8 @@ describe('Card Asset Service', function () {
});
cardAssets.generateGlobs().should.eql({
'cards.min.css': 'css/!(bookmark|gallery).css',
'cards.min.js': 'js/!(bookmark|gallery).js'
'cards.min.css': 'css/*.css',
'cards.min.js': 'js/*.js'
});
});

View file

@ -13,9 +13,7 @@ describe('Themes', function () {
config.should.eql({
posts_per_page: 5,
card_assets: {
exclude: ['bookmark', 'gallery']
}
card_assets: true
});
});
@ -24,9 +22,7 @@ describe('Themes', function () {
config.should.eql({
posts_per_page: 5,
card_assets: {
exclude: ['bookmark', 'gallery']
}
card_assets: true
});
});
@ -44,9 +40,7 @@ describe('Themes', function () {
config.should.eql({
posts_per_page: 5,
card_assets: {
exclude: ['bookmark', 'gallery']
}
card_assets: true
});
});
});