minimal-mistakes README

The project's README from github.com/mmistakes/minimal-mistakes. As one markdown file: README.md.

Minimal Mistakes Jekyll theme

LICENSE Jekyll

Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building personal sites, blogs, and portfolios. As the name implies, styling is purposely minimalistic to be enhanced and customized by you :smile:.

:sparkles: See what's new in the CHANGELOG.

Note: The theme uses the jekyll-include-cache plugin which will need to be installed in your Gemfile and must be retained in the plugins array of _config.yml. Otherwise you'll encounter Unknown tag 'include_cached' errors at build.

Minimal Mistakes live preview

layout examples

Notable features

Skins (color variations)

This theme comes in 11 different skins (in addition to the default one).

air contrast dark
air skin contrast skin dark skin
dirt mint sunrise
dirt skin mint skin sunrise skin
aqua neon plum
aqua skin neon skin plum skin
catppuccin_latte catppuccin_mocha
catppuccin_latte skin catppuccin_mocha skin

Demo pages

Name Description
Post with Header Image A post with a large header image.
HTML Tags and Formatting Post A variety of common markup showing how the theme styles them.
Syntax Highlighting Post Post displaying highlighted code.
Post with a Gallery A post showing several images wrapped in <figure> elements.
Sample Collection Page Single page from a collection.
Categories Archive Posts grouped by category.
Tags Archive Posts grouped by tag.

Additional sample posts are available under posts archive on the demo site. Source files for these (and the entire demo site) can be found in /docs.

Installation

There are three ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible), or forking/directly copying all of the theme files into your project.

Gem-based method

With Gem-based themes, directories such as the assets, _layouts, _includes, and _sass are stored in the theme’s gem, hidden from your immediate view. Yet all of the necessary directories will be read and processed during Jekyll’s build process.

This allows for easier installation and updating as you don't have to manage any of the theme files. To install:

  1. Add the following to your Gemfile:

    gem "minimal-mistakes-jekyll"
    
  2. Fetch and update bundled gems by running the following Bundler command:

    bundle
    
  3. Set the theme in your project's Jekyll _config.yml file:

    theme: minimal-mistakes-jekyll
    

To update the theme run bundle update.

Remote theme method

Remote themes are similar to Gem-based themes, but do not require Gemfile changes or whitelisting making them ideal for sites hosted with GitHub Pages.

To install:

  1. Create/replace the contents of your Gemfile with the following:

    source "https://rubygems.org"
    
    gem "github-pages", group: :jekyll_plugins
    gem "jekyll-include-cache", group: :jekyll_plugins
    
  2. Add jekyll-include-cache to the plugins array of your _config.yml.

  3. Fetch and update bundled gems by running the following Bundler command:

    bundle
    
  4. Add remote_theme: "mmistakes/[email protected]" to your _config.yml file. Remove any other theme: or remote_theme: entry.

Looking for an example? Use the Minimal Mistakes remote theme starter for the quickest method of getting a GitHub Pages hosted site up and running. Generate a new repository from the starter, replace sample content with your own, and configure as needed.

Usage

For detailed instructions on how to configure, customize, add/migrate content, and more read the theme's documentation.

Contributing

Found a typo in the documentation or interested in fixing a bug? Then by all means submit an issue or pull request. If this is your first pull request, it may be helpful to read up on the GitHub Flow first.

For help with using the theme or general Jekyll support questions, please use the Jekyll Talk forums.

Pull Requests

When submitting a pull request:

  1. Clone the repo.
  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.

Theme documentation and demo pages can be found in the /docs if submitting improvements, typo corrections, etc.

Development

To set up your environment to develop this theme, run bundle install.

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.

Credits

Creator

Michael Rose

Icons + Demo Images:

Other:

License

The MIT License (MIT)

Copyright (c) 2013-2024 Michael Rose and contributors

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 SOFTWARE.

Minimal Mistakes incorporates icons from The Noun Project 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, Copyright (c) 2017 Dave Gandy. Font Awesome is distributed under the terms of the SIL OFL 1.1 and MIT License.

Minimal Mistakes incorporates photographs from Unsplash.

Minimal Mistakes incorporates Susy, Copyright (c) 2017, Miriam Eric Suzanne. Susy is distributed under the terms of the BSD 3-clause "New" or "Revised" License.

Minimal Mistakes incorporates Breakpoint. Breakpoint is distributed under the terms of the MIT/GPL Licenses.

Minimal Mistakes incorporates FitVids.js, Copyright (c) 2013 Dave Rubert and Chris Coyier. FitVids is distributed under the terms of the WTFPL License.

Minimal Mistakes incorporates 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 Smooth Scroll, Copyright (c) 2019 Chris Ferdinandi. Smooth Scroll is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Gumshoejs, Copyright (c) 2019 Chris Ferdinandi. Gumshoejs is distributed under the terms of the MIT License.

Minimal Mistakes incorporates jQuery throttle / debounce, Copyright (c) 2010 "Cowboy" Ben Alman. jQuery throttle / debounce is distributed under the terms of the MIT License.

Minimal Mistakes incorporates GreedyNav.js, Copyright (c) 2015 Luke Jackson. GreedyNav.js is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Jekyll Group-By-Array, Copyright (c) 2015 Max White [email protected]. Jekyll Group-By-Array is distributed under the terms of the MIT License.

Minimal Mistakes incorporates @allejo's Pure Liquid Jekyll Table of Contents, Copyright (c) 2017 Vladimir Jimenez. Pure Liquid Jekyll Table of Contents is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Lunr, Copyright (c) 2018 Oliver Nightingale. Lunr is distributed under the terms of the MIT License.

Minimal Mistakes incorporates clipboard.js, Copyright (c) 2021 Zeno Rocha. Clipboard.js is distributed under the terms of the MIT License.

minimal-mistakes (mmistakes/minimal-mistakes)

Searching Database…

这是干什么的?这是 Jekyll(Ruby 静态网站生成器)的一个灵活的双栏主题,适合个人网站、博客、项目文档和作品集,样式刻意保持简洁,方便你自己定制。
那它不是一个能直接运行的应用——它是怎么融入网站的?它是一个添加到现有 Jekyll 项目里的主题包,以主题 gem 的形式提供:它负责布局(laylouts)、包含文件(include)和 Sass 样式,而 Jekyll 会根据你的内容生成静态网站。
怎么把它加到我的网站里?有三种方式:作为基于 gem 的主题(加到 Gemfile、运行 Bundler、在 _config.yml 里设置)、通过 remote_theme: 'mmistakes/[email protected]' 使用远程主题,或者 fork 后直接复制主题文件。以后更新只需运行 bundle update。
开始之前需要装好什么?需要一个带 Bundler 的 Ruby 工具链——安装步骤要对 Gemfile 运行 bundle 命令——再加上 Jekyll 本身。其余的就是你仓库里的内容和配置文件。
安装时有什么容易踩的坑?必须在 Gemfile 里安装 jekyll-include-cache 插件,并把它保留在 _config.yml 的 plugins 数组中,否则构建会报 Unknown tag 'includecached' 错误。
做好的网站能托管在 GitHub Pages 上吗?可以,GitHub Pages 兼容是官方列出的特性。远程主题的方式最适合 Pages,因为它不需要 Gemfile 白名单,而且作者还提供了远程主题入门模板,可以快速搭建托管网站。
开箱即用都包含哪些东西?响应式布局(单页、归档索引、搜索、splash 页、分页首页),还有可选的页头图片、自定义侧边栏、目录、图集、相关文章、面包屑导航和导航列表。同时针对搜索引擎做了优化,支持 Twitter Cards 和 Open Graph。
可以改变网站的外观吗?可以——样式特意做得简洁方便定制,支持 Jekyll 内置的 Sass/SCSS 预处理,而且主题除了默认配色外还自带 11 套配色皮肤,从 air、contrast、dark 到 neon、plum,还有两个 Catppuccin 变体。
评论和访问统计呢?评论支持 Disqus、Facebook、Discourse、Staticman、utterances 和 giscus。统计方面支持 Google Analytics,还支持符合 GDPR 的 Swetrix。
我的母语不是英语,也能用吗?可以。界面文字已翻译成几十种语言——默认是英语,还包含俄语、中文、日语、德语、法语、西班牙语、阿拉伯语、印地语、越南语等很多语言。
Creator
mmistakes
Size
47.6 MB
Stars
13.6K
Age
13y
Commits · 90 Days