Release 4.9.0 💎

This commit is contained in:
Michael Rose 2018-01-04 22:52:11 -05:00
parent 267d2c96a0
commit eaf50acea6
10 changed files with 35 additions and 35 deletions

View file

@ -1,4 +1,4 @@
## Unreleased ## [4.9.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.9.0)
### Enhancements ### Enhancements

View file

@ -3,8 +3,8 @@
<!doctype html> <!doctype html>
<!-- <!--
Minimal Mistakes Jekyll Theme 4.8.1 by Michael Rose Minimal Mistakes Jekyll Theme 4.9.0 by Michael Rose
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
--> -->

View file

@ -1,6 +1,6 @@
/*! /*!
* Minimal Mistakes Jekyll Theme 4.8.1 by Michael Rose * Minimal Mistakes Jekyll Theme 4.9.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes * Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt) * Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
*/ */

12
assets/js/main.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,17 +1,19 @@
const fs = require('fs'); const fs = require("fs");
const pkg = require('./package.json'); const pkg = require("./package.json");
const filename = 'assets/js/main.min.js'; const filename = "assets/js/main.min.js";
const script = fs.readFileSync(filename); 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 = `/*!
* 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 2013-${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
* Licensed under ${pkg.license} * Licensed under ${pkg.license}
*/ */
`; `;
if (script.slice(0, 3) != '/**') { if (script.slice(0, 3) != "/**") {
fs.writeFileSync(filename, banner + script); fs.writeFileSync(filename, banner + script);
} }

View file

@ -4,11 +4,11 @@ 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: 2018-01-04T20:46:50-05:00 last_modified_at: 2018-01-04T22:50:34-05:00
toc: true toc: true
--- ---
## Unreleased ## [4.9.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.9.0)
### Enhancements ### Enhancements

View file

@ -3,8 +3,8 @@
<!doctype html> <!doctype html>
<!-- <!--
Minimal Mistakes Jekyll Theme 4.8.1 by Michael Rose Minimal Mistakes Jekyll Theme 4.9.0 by Michael Rose
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
--> -->

View file

@ -7,7 +7,7 @@ header:
cta_label: "<i class='fas fa-download'></i> Install Now" cta_label: "<i class='fas fa-download'></i> Install Now"
cta_url: "/docs/quick-start-guide/" cta_url: "/docs/quick-start-guide/"
caption: caption:
excerpt: 'A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.<br /> <small><a href="https://github.com/mmistakes/minimal-mistakes/releases/tag/4.8.1">Latest release v4.8.1</a></small><br /><br /> {::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}' excerpt: 'A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server.<br /> <small><a href="https://github.com/mmistakes/minimal-mistakes/releases/tag/4.9.0">Latest release v4.9.0</a></small><br /><br /> {::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=mmistakes&repo=minimal-mistakes&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}'
feature_row: feature_row:
- image_path: /assets/images/mm-customizable-feature.png - image_path: /assets/images/mm-customizable-feature.png
alt: "customizable" alt: "customizable"

View file

@ -2,7 +2,7 @@
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "minimal-mistakes-jekyll" spec.name = "minimal-mistakes-jekyll"
spec.version = "4.8.1" spec.version = "4.9.0"
spec.authors = ["Michael Rose"] spec.authors = ["Michael Rose"]
spec.summary = %q{A flexible two-column Jekyll theme.} spec.summary = %q{A flexible two-column Jekyll theme.}

View file

@ -1,16 +1,12 @@
{ {
"name": "minimal-mistakes", "name": "minimal-mistakes",
"version": "4.8.1", "version": "4.9.0",
"description": "Minimal Mistakes Jekyll theme npm build scripts", "description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/mmistakes/minimal-mistakes.git" "url": "git://github.com/mmistakes/minimal-mistakes.git"
}, },
"keywords": [ "keywords": ["jekyll", "theme", "minimal"],
"jekyll",
"theme",
"minimal"
],
"author": "Michael Rose", "author": "Michael Rose",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
@ -26,9 +22,11 @@
"uglify-js": "^2.6.1" "uglify-js": "^2.6.1"
}, },
"scripts": { "scripts": {
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-3.2.1.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js -c -m -o assets/js/main.min.js", "uglify":
"uglifyjs assets/js/vendor/jquery/jquery-3.2.1.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js -c -m -o assets/js/main.min.js",
"add-banner": "node banner.js", "add-banner": "node banner.js",
"watch:js": "onchange \"assets/js/**/*.js\" -e \"assets/js/main.min.js\" -- npm run build:js", "watch:js":
"onchange \"assets/js/**/*.js\" -e \"assets/js/main.min.js\" -- npm run build:js",
"build:js": "npm run uglify && npm run add-banner" "build:js": "npm run uglify && npm run add-banner"
} }
} }