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

@ -3,6 +3,7 @@
### Enhancements ### Enhancements
- Add Greek localized UI text strings. [#1159](https://github.com/mmistakes/minimal-mistakes/pull/1159) - Add Greek localized UI text strings. [#1159](https://github.com/mmistakes/minimal-mistakes/pull/1159)
- Remove blank YAML Front Matter from JavaScript banner. [#1158](https://github.com/mmistakes/minimal-mistakes/issues/1158)
## [4.5.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.0) ## [4.5.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.0)

View file

@ -1,7 +1,3 @@
---
layout:
---
/*! /*!
* Minimal Mistakes Jekyll Theme 4.5.0 by Michael Rose * Minimal Mistakes Jekyll Theme 4.5.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes * Copyright 2017 Michael Rose - mademistakes.com | @mmistakes

View file

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

View file

@ -4,7 +4,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme." excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar: sidebar:
nav: docs nav: docs
last_modified_at: 2017-08-06T10:31:32-04:00 last_modified_at: 2017-08-06T10:43:26-04:00
--- ---
## Unreleased ## Unreleased
@ -12,6 +12,7 @@ last_modified_at: 2017-08-06T10:31:32-04:00
### Enhancements ### Enhancements
- Add Greek localized UI text strings. [#1159](https://github.com/mmistakes/minimal-mistakes/pull/1159) - Add Greek localized UI text strings. [#1159](https://github.com/mmistakes/minimal-mistakes/pull/1159)
- Remove blank YAML Front Matter from JavaScript banner. [#1158](https://github.com/mmistakes/minimal-mistakes/issues/1158)
## [4.5.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.0) ## [4.5.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.0)

View file

@ -1,7 +1,3 @@
---
layout:
---
/*! /*!
* Minimal Mistakes Jekyll Theme 4.5.0 by Michael Rose * Minimal Mistakes Jekyll Theme 4.5.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes * Copyright 2017 Michael Rose - mademistakes.com | @mmistakes