summary refs log tree commit diff stats
path: root/src/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 12:37:33 +0200
committerAlan Pearce2017-06-18 12:37:33 +0200
commit6c9089e72f421f6b4976fa0a5b0a3c1a6c41147a (patch)
tree62bb404f504e33fed07cf2e2d727298222845743 /src/modules
parentbf20f4f6d97b8d2643f19ed7ac617c33a7f2ea6b (diff)
downloadhomestead-6c9089e72f421f6b4976fa0a5b0a3c1a6c41147a.tar.lz
homestead-6c9089e72f421f6b4976fa0a5b0a3c1a6c41147a.tar.zst
homestead-6c9089e72f421f6b4976fa0a5b0a3c1a6c41147a.zip
refactor(posts): Clarify what options are for
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/posts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/posts.js b/src/modules/posts.js
index e005103..26db63d 100644
--- a/src/modules/posts.js
+++ b/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 @@ function canonicaliseMetadata (meta) {
 }
 
 function get (filename) {
-  return canonicaliseMetadata(matter.read(filename, options))
+  return canonicaliseMetadata(matter.read(filename, grayMatterOptions))
 }
 
 function getFolder (folder) {