corvid-local-site
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "corvid-local-site", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -160,6 +160,19 @@ const path = require("path"); | ||
const getLocalFileContent = siteItem => { | ||
const file = itemToFile(siteItem); | ||
return sc.matchItem(siteItem, { | ||
[sc.pageWithCode]: () => ({ page: file[0].content, code: file[1].content }), | ||
[sc.lightboxWithCode]: () => ({ | ||
lightbox: file[0].content, | ||
code: file[1].content | ||
}), | ||
"*": () => file.content | ||
}); | ||
}; | ||
module.exports = { | ||
buildFull, | ||
buildPartial, | ||
getLocalFilePath | ||
getLocalFilePath, | ||
getLocalFileContent | ||
}; |
32513
845