зеркало из https://github.com/github/docs.git
use site.data
This commit is contained in:
Родитель
35a54fdaad
Коммит
8208a2b6bb
|
@ -30,7 +30,7 @@ module.exports = {
|
|||
assert(parseInt(numSpaces) || numSpaces === '0', '"spaces=NUMBER" must include a number')
|
||||
|
||||
// Get the referenced value from the context
|
||||
const value = await this.liquid.evalValue(dataReference, context)
|
||||
const value = await this.liquid.evalValue(`site.data.${dataReference}`, context)
|
||||
|
||||
// If nothing is found in the context, exit with nothing; this may
|
||||
// feel weird and that we should throw an error, but this is "The Liquid Way TM"
|
||||
|
|
Загрузка…
Ссылка в новой задаче