mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
More handlebar helper bugs
This commit is contained in:
parent
38f0b38f9f
commit
e6f12453b8
@ -196,7 +196,7 @@ class Injectables {
|
||||
let contents;
|
||||
|
||||
if (fn) {
|
||||
contents = stripIndent(fn(data));
|
||||
contents = stripIndent(fn(data.root));
|
||||
} else {
|
||||
let tpath = args.shift();
|
||||
tpath = self._parsePath(tpath, data.root.local, 'md');
|
||||
@ -215,7 +215,7 @@ class Injectables {
|
||||
return function (tpath, ...args) {
|
||||
const { hash, data } = args.pop();
|
||||
const value = args.shift();
|
||||
const context = handlebars.createFrame(value || data);
|
||||
const context = handlebars.createFrame(value || data.root);
|
||||
Object.assign(context, hash || {});
|
||||
|
||||
tpath = self._parsePath(tpath, data.root.local, 'hbs');
|
||||
|
Loading…
x
Reference in New Issue
Block a user