Skip to content

Commit

Permalink
fix(main): explicitly set title to null
Browse files Browse the repository at this point in the history
Avoids having Jekyll try to figure it out the title for itself
  • Loading branch information
voxpelli committed Jul 2, 2015
1 parent e05bc28 commit e4ed619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -13,6 +13,7 @@ Formatter.prototype._formatFrontMatter = function (source) {
var target = {
layout: 'micropubpost',
date: source.published[0].toISOString(),
title: null,
};

//TODO: Make configurable?
Expand Down
2 changes: 2 additions & 0 deletions test/formatter.spec.js
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit e4ed619

Please sign in to comment.