This commit is contained in:
Sarah Schneider 2021-04-21 12:53:32 -04:00
Родитель 35a54fdaad
Коммит 8208a2b6bb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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"