refactor(posts): Clarify what options are for
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:37:33 +0200
1 files changed, 2 insertions(+), 2 deletions(-)
jump to
M src/modules/posts.js → src/modules/posts.js
@@ -4,7 +4,7 @@ const fs = require('fs') const path = require('path') const matter = require('gray-matter') -const options = { +const grayMatterOptions = { lang: 'toml', delims: '+++' } @@ -25,7 +25,7 @@ return meta } function get (filename) { - return canonicaliseMetadata(matter.read(filename, options)) + return canonicaliseMetadata(matter.read(filename, grayMatterOptions)) } function getFolder (folder) {