2016-07-21 14:29:21 +02:00
# [Minimal Mistakes Jekyll Theme](https://mmistakes.github.io/minimal-mistakes/)
2018-10-09 23:46:34 +02:00
[![LICENSE ](https://img.shields.io/badge/license-MIT-lightgrey.svg )](https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/LICENSE)
2018-02-06 21:57:44 +01:00
[![Jekyll ](https://img.shields.io/badge/jekyll-%3E%3D%203.6-blue.svg )](https://jekyllrb.com/)
2018-02-06 21:59:31 +01:00
[![Ruby gem ](https://img.shields.io/gem/v/minimal-mistakes-jekyll.svg )](https://rubygems.org/gems/minimal-mistakes-jekyll)
2018-02-06 21:57:44 +01:00
[![Tip Me via PayPal ](https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal )](https://www.paypal.me/mmistakes)
2013-05-24 21:20:25 +02:00
2018-10-05 05:27:49 +02:00
Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your personal site, blog, or portfolio on GitHub or self-hosting on your own server. As the name implies -- styling is purposely minimalistic to be enhanced and customized by you :smile:.
2015-10-30 19:07:22 +01:00
2017-09-12 21:36:44 +02:00
:sparkles: See what's new in the [CHANGELOG ](CHANGELOG.md ).
2016-09-22 18:13:39 +02:00
2018-10-05 05:27:49 +02:00
**Note:** The theme uses the [jekyll-include-cache ](https://github.com/benbalter/jekyll-include-cache ) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml` . Otherwise you'll throw `Unknown tag 'include_cached'` errors at build.
2016-04-15 15:32:00 +02:00
[![Minimal Mistakes live preview][2]][1]
[1]: https://mmistakes.github.io/minimal-mistakes/
2016-10-07 03:13:40 +02:00
[2]: screenshot.png (live preview)
2016-04-15 15:32:00 +02:00
2016-10-07 03:13:40 +02:00
![layout examples ](screenshot-layouts.png )
2013-05-24 21:20:25 +02:00
2016-10-07 03:13:40 +02:00
## Notable Features
2013-05-24 21:26:50 +02:00
2017-09-12 21:36:44 +02:00
- Bundled as a "theme gem" for easier install/upgrading.
- Compatible with GitHub Pages.
- Support for Jekyll's built-in Sass/SCSS preprocessor.
2017-11-06 22:27:22 +01:00
- Nine different skins (color variations).
2017-11-15 21:03:04 +01:00
- Several responsive layout options (single, archive index, search, splash, and paginated home page).
2017-09-12 21:36:44 +02:00
- Optimized for search engines with support for [Twitter Cards ](https://dev.twitter.com/cards/overview ) and [Open Graph ](http://ogp.me/ ) data
2016-10-07 03:19:53 +02:00
- Optional [header images ](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers ), [custom sidebars ](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars ), [table of contents ](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents ), [galleries ](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery ), related posts, [breadcrumb links ](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta ), [navigation lists ](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list ), and more.
2017-10-20 20:54:06 +02:00
- Commenting support (powered by [Disqus ](https://disqus.com/ ), [Facebook ](https://developers.facebook.com/docs/plugins/comments ), Google+, [Discourse ](https://www.discourse.org/ ), static-based via [Staticman v1 and v2 ](https://staticman.net/ ), and custom).
2016-10-07 03:13:40 +02:00
- [Google Analytics ](https://www.google.com/analytics/ ) support.
2018-10-23 16:37:41 +02:00
- UI localized text in English (default), Brazilian Portuguese (Português brasileiro), Chinese, Danish, Dutch, French (Français), German (Deutsch), Greek, Hindi (हिन्दी), Hungarian, Indonesian, Italian (Italiano), Japanese, Korean, Nepali (Nepalese), Polish, Romanian, Russian, Slovak, Spanish (Español), Swedish, Turkish (Türkçe), and Vietnamese.
2017-09-12 21:36:44 +02:00
## Skins (Color Variations)
2017-11-10 17:23:45 +01:00
This theme comes in nine different skins (including the default one).
2017-09-12 21:36:44 +02:00
| `air` | `contrast` | `dark` |
| --- | --- | --- |
2017-09-12 21:39:16 +02:00
| ![air skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/air-skin-archive.png ) | ![contrast skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/contrast-skin-archive.png ) | ![dark skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/dark-skin-archive.png ) |
2017-09-12 21:36:44 +02:00
| `dirt` | `mint` | `sunrise` |
| --- | --- | --- |
2017-09-12 21:39:16 +02:00
| ![dirt skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/dirt-skin-archive.png ) | ![mint skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/mint-skin-archive.png ) | ![sunrise skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/sunrise-skin-archive.png ) |
2013-05-24 21:20:25 +02:00
2017-11-06 22:20:33 +01:00
| `aqua` | `neon` | `plum` |
2017-11-06 18:21:03 +01:00
| --- | --- | --- |
2017-11-06 22:22:51 +01:00
| ![aqua skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/aqua-skin-archive.png ) | ![neon skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/neon-skin-archive.png ) | ![plum skin ](https://mmistakes.github.io/minimal-mistakes/assets/images/plum-skin-archive.png ) |
2017-11-06 18:21:03 +01:00
2016-10-07 03:13:40 +02:00
## Demo Pages
2013-05-24 21:20:25 +02:00
2016-04-14 21:44:07 +02:00
| Name | Description |
| ------------------------------------------- | ----------------------------------------------------- |
| [Post with Header Image][header-image-post] | A post with a large header image. |
| [HTML Tags and Formatting Post][html-tags-post] | A variety of common markup showing how the theme styles them. |
| [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
| [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
| [Sample Collection Page][sample-collection] | Single page from a collection. |
| [Categories Archive][categories-archive] | Posts grouped by category. |
2017-08-30 04:03:13 +02:00
| [Tags Archive][tags-archive] | Posts grouped by tag. |
2013-06-06 17:37:58 +02:00
2016-11-03 16:52:04 +01:00
Additional sample posts are available under [posts archive][year-archive] on the demo site. Source files for these (and the entire demo site) can be found in [`/docs` ](docs ).
2016-04-14 21:44:07 +02:00
[header-image-post]: https://mmistakes.github.io/minimal-mistakes/layout-header-image-text-readability/
[gallery-post]: https://mmistakes.github.io/minimal-mistakes/post%20formats/post-gallery/
[html-tags-post]: https://mmistakes.github.io/minimal-mistakes/markup/markup-html-tags-and-formatting/
[syntax-post]: https://mmistakes.github.io/minimal-mistakes/markup-syntax-highlighting/
[sample-collection]: https://mmistakes.github.io/minimal-mistakes/recipes/chocolate-chip-cookies/
[categories-archive]: https://mmistakes.github.io/minimal-mistakes/categories/
[tags-archive]: https://mmistakes.github.io/minimal-mistakes/tags/
[year-archive]: https://mmistakes.github.io/minimal-mistakes/year-archive/
2017-11-10 17:20:38 +01:00
## Installation
2016-11-03 16:52:04 +01:00
2017-11-10 17:20:38 +01:00
There are three ways to install the theme: as a Ruby gem (for self-hosted sites), as a Ruby gem + jekyll-remote-theme plugin (GitHub Pages hosted sites), or forking/directly copying all of the theme files into your project.
2016-11-03 16:52:04 +01:00
2017-11-10 17:20:38 +01:00
### Ruby Gem Method
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
1. Install the theme as a Ruby Gem by adding it to your `Gemfile` like so:
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
```ruby
gem "minimal-mistakes-jekyll"
```
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
2. Fetch and update bundled gems by running the following [Bundler ](http://bundler.io/ ) command:
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
```bash
bundle
```
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
3. Set the `theme` in your project's Jekyll `_config.yml` file:
2016-10-07 03:13:40 +02:00
2017-11-10 17:20:38 +01:00
```yaml
theme: minimal-mistakes-jekyll
```
2016-10-07 03:13:40 +02:00
2016-11-03 16:52:04 +01:00
To update the theme run `bundle update` .
2016-10-07 03:13:40 +02:00
2018-01-03 14:42:25 +01:00
### GitHub Pages Method
2017-11-10 17:20:38 +01:00
1. Create/replace the contents of your `Gemfile` with the following:
```ruby
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
```
2. Fetch and update bundled gems by running the following [Bundler ](http://bundler.io/ ) command:
```bash
bundle
```
2018-01-03 14:38:08 +01:00
3. Add `remote_theme: "mmistakes/minimal-mistakes"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
2017-11-10 17:20:38 +01:00
## Usage
For detailed instructions on how to configure, customize, add/migrate content, and more read the [theme's documentation ](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/ ).
2016-04-14 21:44:07 +02:00
---
2016-06-13 04:26:18 +02:00
## Contributing
2016-04-14 21:44:07 +02:00
2016-06-13 04:26:18 +02:00
Having trouble working with the theme? Found a typo in the documentation? Interested in adding a feature or [fixing a bug ](https://github.com/mmistakes/minimal-mistakes/issues )? Then by all means [submit an issue ](https://github.com/mmistakes/minimal-mistakes/issues/new ) or [pull request ](https://help.github.com/articles/using-pull-requests/ ). If this is your first pull request, it may be helpful to read up on the [GitHub Flow ](https://guides.github.com/introduction/flow/ ) first.
Minimal Mistakes has been designed as a base for you to customize and fit your site's unique needs. Please keep this in mind when requesting features and/or submitting pull requests. If it's not something that most people will use, I probably won't consider it. When in doubt ask.
This goes for author sidebar links and "share button" additions -- I have no intention of merging in every possibly option, the essentials are there to get you started :smile:.
### Pull Requests
2017-03-22 14:51:20 +01:00
When submitting a pull request:
1. Clone the repo.
2017-10-16 21:24:45 +02:00
2. Create a branch off of `master` and give it a meaningful name (e.g. `my-awesome-new-feature` ).
3. Open a pull request on GitHub and describe the feature or fix.
2016-06-13 04:26:18 +02:00
2016-11-03 16:52:04 +01:00
Theme documentation and demo pages can be found in the [`/docs` ](docs ) if submitting improvements, typo corrections, etc.
2016-10-07 03:13:40 +02:00
2016-11-16 17:21:56 +01:00
## Development
To set up your environment to develop this theme, run `bundle install` .
2017-02-20 18:24:23 +01:00
To test the theme, run `bundle exec rake preview` and open your browser at `http://localhost:4000/test/` . This starts a Jekyll server using content in the `test/` directory. As modifications are made to the theme and test site, it will regenerate and you should see the changes in the browser after a refresh.
2016-11-16 17:21:56 +01:00
2016-06-13 04:26:18 +02:00
---
## Credits
2016-07-21 14:29:21 +02:00
### Creator
**Michael Rose**
- < https: // mademistakes . com >
- < https: // twitter . com / mmistakes >
- < https: // github . com / mmistakes >
2016-06-13 04:26:18 +02:00
### Icons + Demo Images:
2016-04-14 21:44:07 +02:00
- [The Noun Project ](https://thenounproject.com ) -- Garrett Knoll, Arthur Shlain, and [tracy tam ](https://thenounproject.com/tracytam )
2018-01-03 14:40:36 +01:00
- [Font Awesome ](http://fontawesome.io/ )
2016-04-14 21:44:07 +02:00
- [Unsplash ](https://unsplash.com/ )
2016-06-13 04:26:18 +02:00
### Other:
2016-04-14 21:44:07 +02:00
- [Jekyll ](http://jekyllrb.com/ )
- [jQuery ](http://jquery.com/ )
- [Susy ](http://susy.oddbird.net/ )
- [Breakpoint ](http://breakpoint-sass.com/ )
- [Magnific Popup ](http://dimsemenov.com/plugins/magnific-popup/ )
- [FitVids.JS ](http://fitvidsjs.com/ )
2018-01-03 14:39:38 +01:00
- [GreedyNav.js ](https://github.com/lukejacksonn/GreedyNav )
2016-04-14 21:44:07 +02:00
- [jQuery Smooth Scroll ](https://github.com/kswedberg/jquery-smooth-scroll )
2018-01-10 17:22:41 +01:00
- [Lunr ](http://lunrjs.com )
2016-04-14 21:44:07 +02:00
---
2016-06-13 04:26:18 +02:00
## License
2016-04-14 21:44:07 +02:00
The MIT License (MIT)
2018-01-03 14:25:51 +01:00
Copyright (c) 2013-2018 Michael Rose and contributors
2016-04-14 21:44:07 +02:00
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2016-04-14 21:53:10 +02:00
SOFTWARE.
2017-10-16 22:05:39 +02:00
Minimal Mistakes incorporates icons from [The Noun Project ](https://thenounproject.com/ )
creators Garrett Knoll, Arthur Shlain, and tracy tam.
Icons are distributed under Creative Commons Attribution 3.0 United States (CC BY 3.0 US).
Minimal Mistakes incorporates [Font Awesome ](http://fontawesome.io/ ),
Copyright (c) 2017 Dave Gandy.
Font Awesome is distributed under the terms of the [SIL OFL 1.1 ](http://scripts.sil.org/OFL )
and [MIT License ](http://opensource.org/licenses/MIT ).
Minimal Mistakes incorporates photographs from [Unsplash ](https://unsplash.com ).
Minimal Mistakes incorporates [Susy ](http://susy.oddbird.net/ ),
Copyright (c) 2017, Miriam Eric Suzanne.
Susy is distributed under the terms of the [BSD 3-clause "New" or "Revised" License ](https://opensource.org/licenses/BSD-3-Clause ).
Minimal Mistakes incorporates [Breakpoint ](http://breakpoint-sass.com/ ).
Breakpoint is distributed under the terms of the [MIT/GPL Licenses ](http://opensource.org/licenses/MIT ).
Minimal Mistakes incorporates [FitVids.js ](https://github.com/davatron5000/FitVids.js/ ),
Copyright (c) 2013 Dave Rubert and Chris Coyier.
FitVids is distributed under the terms of the [WTFPL License ](http://sam.zoy.org/wtfpl/ ).
Minimal Mistakes incorporates [Magnific Popup ](http://dimsemenov.com/plugins/magnific-popup/ ),
Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com.
Magnific Popup is distributed under the terms of the MIT License.
Minimal Mistakes incorporates [jQuery Smooth Scroll ](https://github.com/kswedberg/jquery-smooth-scroll ),
Copyright (c) 2017 Karl Swedberg.
jQuery Smooth Scroll is distributed under the terms of the [MIT License ](http://opensource.org/licenses/MIT ).
Minimal Mistakes incorporates [GreedyNav.js ](https://github.com/lukejacksonn/GreedyNav ),
Copyright (c) 2015 Luke Jackson.
GreedyNav.js is distributed under the terms of the [MIT License ](http://opensource.org/licenses/MIT ).
Minimal Mistakes incorporates [Jekyll Group-By-Array ](https://github.com/mushishi78/jekyll-group-by-array ),
Copyright (c) 2015 Max White < mushishi78 @ gmail . com > .
2017-10-20 20:54:06 +02:00
Jekyll Group-By-Array is distributed under the terms of the [MIT License ](http://opensource.org/licenses/MIT ).
Minimal Mistakes incorporates [@allejo's Pure Liquid Jekyll Table of Contents ](https://allejo.io/blog/a-jekyll-toc-in-liquid-only/ ),
Copyright (c) 2017 Vladimir Jimenez.
2017-11-06 20:07:04 +01:00
Pure Liquid Jekyll Table of Contents is distributed under the terms of the [MIT License ](http://opensource.org/licenses/MIT ).
2018-01-10 17:22:41 +01:00
Minimal Mistakes incorporates [Lunr ](http://lunrjs.com ),
2018-10-09 23:44:56 +02:00
Copyright (c) 2018 Oliver Nightingale.
2018-01-10 17:22:41 +01:00
Lunr is distributed under the terms of the [MIT License ](http://opensource.org/licenses/MIT ).