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:
parent
e44d089dbe
commit
ad9e916700
2 changed files with 1 additions and 5 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue