diff options
author | Alan Pearce | 2017-10-02 23:26:21 +0200 |
---|---|---|
committer | Alan Pearce | 2017-10-02 23:26:21 +0200 |
commit | 81f5f1ed4380b957a4959f50d46e59d26bdbc99f (patch) | |
tree | 3be55344f0db7195c13be66887e923eeb768ce63 | |
parent | 6c83a4ef809d5d6e1bb688351558ae1c6ee303e2 (diff) | |
download | homestead-81f5f1ed4380b957a4959f50d46e59d26bdbc99f.tar.xz homestead-81f5f1ed4380b957a4959f50d46e59d26bdbc99f.zip |
fix: setup toml parser for gray-matter
It was broken in the upgrade. Not sure how previous tests missed it.
-rw-r--r-- | src/domain/posts.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/domain/posts.js b/src/domain/posts.js index ab35518..c6b57c5 100644 --- a/src/domain/posts.js +++ b/src/domain/posts.js | |||
@@ -3,6 +3,7 @@ | |||
3 | const h = require("highland"); | 3 | const h = require("highland"); |
4 | const fs = require("fs"); | 4 | const fs = require("fs"); |
5 | const path = require("path"); | 5 | const path = require("path"); |
6 | const toml = require("toml"); | ||
6 | const { promisify } = require("util"); | 7 | const { promisify } = require("util"); |
7 | const matter = require("gray-matter"); | 8 | const matter = require("gray-matter"); |
8 | const markdown = require("../modules/markdown.js"); | 9 | const markdown = require("../modules/markdown.js"); |
@@ -11,7 +12,10 @@ const { indentForTemplate, postIndentLevel } = require("../responders.js"); | |||
11 | 12 | ||
12 | const grayMatterOptions = { | 13 | const grayMatterOptions = { |
13 | lang: "toml", | 14 | lang: "toml", |
14 | delims: "+++" | 15 | delims: "+++", |
16 | engines: { | ||
17 | toml: toml.parse.bind(toml) | ||
18 | } | ||
15 | }; | 19 | }; |
16 | 20 | ||
17 | function* lowercaseKeys(iterator) { | 21 | function* lowercaseKeys(iterator) { |