Skip to content

Commit

Permalink
Merge branch 'release/4.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Feb 28, 2017
2 parents 4454e39 + 7316be4 commit 6b8d314
Show file tree
Hide file tree
Showing 14 changed files with 79 additions and 11 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [4.3.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.3.0)

### Enhancements

- Add workaround to allow theme gem's `/assets/js/main.min.js` file to be overridden by a local version. Simply add the following YAML Front Matter to the file:

```
---
layout:
---
```

Any local customizations you make to `/assets/js/main.min.js` should now replace the theme gem's version.

## [4.2.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.2.2)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<meta name="author" content="{{ seo_author }}">

<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">

Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

/*!
* Minimal Mistakes Jekyll Theme 4.2.2 by Michael Rose
* Minimal Mistakes Jekyll Theme 4.3.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
*/
Expand Down
9 changes: 9 additions & 0 deletions assets/js/main.min.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const fs = require('fs');
const pkg = require('./package.json');
const filename = 'assets/js/main.min.js';
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:
---
/*!
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
* Copyright ${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
* Licensed under ${pkg.license}
*/
`;

if (script.slice(0, 3) != '/**') {
fs.writeFileSync(filename, banner + script);
}
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ defaults:
related: true
# _pages
- scope:
path: ""
path: "_pages"
type: pages
values:
layout: single
Expand Down
16 changes: 15 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,23 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
modified: 2017-02-21T10:35:32-05:00
modified: 2017-02-28T10:35:04-05:00
---

## [4.3.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.3.0)

### Enhancements

- Add workaround to allow theme gem's `/assets/js/main.min.js` file to be overridden by a local version. Simply add the following YAML Front Matter to the file:

```
---
layout:
---
```

Any local customizations you make to `/assets/js/main.min.js` should now replace the theme gem's version.

## [4.2.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.2.2)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<meta name="author" content="{{ seo_author }}">

<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en" }}">
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">

Expand Down
2 changes: 1 addition & 1 deletion docs/_pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ header:
cta_label: "<i class='fa fa-download'></i> Install Now"
cta_url: "/docs/quick-start-guide/"
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.2.2">Latest release v4.2.2</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.3.0">Latest release v4.3.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:
- image_path: /assets/images/mm-customizable-feature.png
alt: "customizable"
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

/*!
* Minimal Mistakes Jekyll Theme 4.2.2 by Michael Rose
* Minimal Mistakes Jekyll Theme 4.3.0 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
*/
Expand Down
9 changes: 9 additions & 0 deletions docs/assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion minimal-mistakes-jekyll.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "minimal-mistakes-jekyll"
spec.version = "4.2.2"
spec.version = "4.3.0"
spec.authors = ["Michael Rose"]

spec.summary = %q{A flexible two-column Jekyll theme.}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minimal-mistakes",
"version": "4.2.2",
"version": "4.3.0",
"description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": {
"type": "git",
Expand All @@ -27,7 +27,8 @@
},
"scripts": {
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-1.12.4.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",
"watch:js": "onchange \"assets/js/**/*.js\" -e \"assets/js/main.min.js\" -- npm run build:js",
"build:js": "npm run uglify"
"build:js": "npm run uglify && npm run add-banner"
}
}
2 changes: 1 addition & 1 deletion test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ defaults:
related: true
# _pages
- scope:
path: ""
path: "_pages"
type: pages
values:
layout: single
Expand Down

0 comments on commit 6b8d314

Please sign in to comment.