Skip to content

Commit

Permalink
Fixed excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Mar 13, 2016
1 parent 31362b1 commit 45b4a09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions processData.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ function postCompiler (callback, err, compilerContext) {
// require('fs-page/createExcerpt')(data.html)
//
// programatically
data.createExcerpt = function () {
data.createExcerpt = function (options) {
var excerptBase = data.excerpt ? '<p>' + data.excerpt + '</p>' : data.html
console.log(excerptBase)
return require('excerpt-html')(excerptBase)
return require('excerpt-html')(excerptBase, options)
}
if (data.html && options.images) {
return require('./processImages')(data.html, options.linkIt, function (ignoreError, result) {
Expand Down

0 comments on commit 45b4a09

Please sign in to comment.