diff --git a/lib/stringify.js b/lib/stringify.js index b4c70a4..97f7b40 100644 --- a/lib/stringify.js +++ b/lib/stringify.js @@ -35,6 +35,7 @@ module.exports = function(file, data, options) { data = Object.assign({}, file.data, data); const open = opts.delimiters[0]; const close = opts.delimiters[1]; + const sep = opts.excerpt_separator || opts.delimiters[0]; const matter = engine.stringify(data, options).trim(); let buf = ''; @@ -44,7 +45,7 @@ module.exports = function(file, data, options) { if (typeof file.excerpt === 'string' && file.excerpt !== '') { if (str.indexOf(file.excerpt.trim()) === -1) { - buf += newline(file.excerpt) + newline(close); + buf += newline(file.excerpt) + newline(sep); } }