0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

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: only do this if something changed?
// @TODO: remove blog in a major where we are happy to break more themes
{ {
hbs.updateTemplateOptions({ hbs.updateTemplateOptions({
data: { data: {
blog: siteData,
site: siteData, site: siteData,
labs: labsData, labs: labsData,
config: themeData, config: themeData,

View file

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