all repos — archive/homestead @ 81f5f1ed4380b957a4959f50d46e59d26bdbc99f

My future indieweb platform

fix: setup toml parser for gray-matter It was broken in the upgrade. Not sure how previous tests missed it.

Alan Pearce
commit

81f5f1ed4380b957a4959f50d46e59d26bdbc99f

parent

6c83a4ef809d5d6e1bb688351558ae1c6ee303e2

1 file changed, 5 insertions(+), 1 deletion(-)

changed files
M src/domain/posts.jssrc/domain/posts.js
@@ -3,6 +3,7 @@
const h = require("highland"); const fs = require("fs"); const path = require("path"); +const toml = require("toml"); const { promisify } = require("util"); const matter = require("gray-matter"); const markdown = require("../modules/markdown.js");
@@ -11,7 +12,10 @@ const { indentForTemplate, postIndentLevel } = require("../responders.js");
const grayMatterOptions = { lang: "toml", - delims: "+++" + delims: "+++", + engines: { + toml: toml.parse.bind(toml) + } }; function* lowercaseKeys(iterator) {