Skip to content

Instantly share code, notes, and snippets.

@v3nom
v3nom / blog.js
Last active April 3, 2017 18:32
var RSS = require('rss20');
// Read global settings
uSite.global = uSite.loadOptions('website.json');
// Collect and extract meta data from posts
var posts = uSite.loadContent('content/post/*', (entry) => {
var file = entry.loadString();
var fileParts = file.split('+++', 2);