Removed @blog from theme globals

closes: https://github.com/TryGhost/Toolbox/issues/231
refs: https://github.com/TryGhost/Ghost/issues/14446

- @blog was deprecated before Ghost 3.0, but we're only just removing it now for 5.0
This commit is contained in:
Hannah Wolfe 2022-05-12 15:55:25 +01:00
parent e44d089dbe
commit ad9e916700
No known key found for this signature in database
GPG Key ID: AB586C3B5AE5C037
2 changed files with 1 additions and 5 deletions

View File

@ -97,11 +97,9 @@ async function updateGlobalTemplateOptions(req, res, next) {
}
// @TODO: only do this if something changed?
// @TODO: remove blog in a major where we are happy to break more themes
{
hbs.updateTemplateOptions({
data: {
blog: siteData,
site: siteData,
labs: labsData,
config: themeData,

View File

@ -42,9 +42,7 @@ function updateLocalTemplateOptions(req, res, next) {
data: {
member: member,
site: siteData,
custom: customData,
// @deprecated: a gscan warning for @blog was added before 3.0 which replaced it with @site
blog: siteData
custom: customData
}
}));