From e4ed61960bb3ceed5b851efbdda4de1700af4bf6 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 2 Jul 2015 21:33:28 +0200 Subject: [PATCH] fix(main): explicitly set title to null Avoids having Jekyll try to figure it out the title for itself --- index.js | 1 + test/formatter.spec.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/index.js b/index.js index 8a9eb85..6411263 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ Formatter.prototype._formatFrontMatter = function (source) { var target = { layout: 'micropubpost', date: source.published[0].toISOString(), + title: null, }; //TODO: Make configurable? diff --git a/test/formatter.spec.js b/test/formatter.spec.js index 97a631f..1ffa8eb 100644 --- a/test/formatter.spec.js +++ b/test/formatter.spec.js @@ -58,6 +58,7 @@ describe('Formatter', function () { '---\n' + 'layout: micropubpost\n' + 'date: \'2015-06-30T14:34:01.000Z\'\n' + + 'title: null\n' + 'slug: awesomeness-is-awesome\n' + '---\n' + 'hello world\n' @@ -131,6 +132,7 @@ describe('Formatter', function () { '---\n' + 'layout: micropubpost\n' + 'date: \'2015-06-30T14:34:01.000Z\'\n' + + 'title: null\n' + 'mf-like-of:\n' + ' - \'http://example.com/liked/page\'\n' + '---\n'