Created
October 31, 2013 17:47
-
-
Save doowb/7253948 to your computer and use it in GitHub Desktop.
Assemble plugin to modify page contents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
stage: 'assemble:post:pages' | |
}; | |
var plugin = function(params, next) { | |
var buildPaginationInfo = function() { | |
var pages = params.assemble.options.pages; | |
for (var i = 0; i < pages.length; i++) { | |
// get current page content | |
var content = pages[i].page; | |
content = '<h1>ALL YOUR PAGE BELONG TO US</h1>'; | |
pages[i].page = content; | |
} | |
}; | |
next(); | |
}; | |
// export options | |
plugin.options = options; | |
module.exports = plugin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment