Remove blank YAML Front Matter from JavaScript banner

- No longer needed ref: https://github.com/jekyll/jekyll/pull/5918

Ref: https://github.com/mmistakes/minimal-mistakes/issues/1158
This commit is contained in:
Michael Rose
2017-08-06 10:43:36 -04:00
parent 1205a8c46c
commit 709a1e8583
5 changed files with 4 additions and 14 deletions

View File

@@ -5,11 +5,7 @@ const script = fs.readFileSync(filename);
const padStart = str => ('0' + str).slice(-2)
const dateObj = new Date;
const date = `${dateObj.getFullYear()}-${padStart(dateObj.getMonth() + 1)}-${padStart(dateObj.getDate())}`;
const banner = `---
layout:
---
/*!
const banner = `/*!
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
* Copyright ${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
* Licensed under ${pkg.license}