Add new layouts
This commit is contained in:
parent
cc81736778
commit
483184d566
4 changed files with 16 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
* Add default `theme` and `remote_theme` values to `_config.yml`.
|
* Add default `theme` and `remote_theme` values to `_config.yml`.
|
||||||
|
* Add new layouts (`posts`, `categories`, `tags`, `collection`, `category`, and `tag`) for easier archive page creation.(https://github.com/mmistakes/minimal-mistakes/issues/1582)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: "Structure"
|
title: "Structure"
|
||||||
permalink: /docs/structure/
|
permalink: /docs/structure/
|
||||||
excerpt: "How the theme is organized and what all of the files are for."
|
excerpt: "How the theme is organized and what all of the files are for."
|
||||||
last_modified_at: 2018-01-03T12:03:59-05:00
|
last_modified_at: 2018-03-20T15:19:22-04:00
|
||||||
---
|
---
|
||||||
|
|
||||||
Nothing clever here :wink:. Layouts, data files, and includes are all placed in their default locations. Stylesheets and scripts in `assets`, and a few development related files in the project's root directory.
|
Nothing clever here :wink:. Layouts, data files, and includes are all placed in their default locations. Stylesheets and scripts in `assets`, and a few development related files in the project's root directory.
|
||||||
|
@ -29,12 +29,18 @@ minimal-mistakes
|
||||||
| └── ...
|
| └── ...
|
||||||
├── _layouts
|
├── _layouts
|
||||||
| ├── archive-taxonomy.html # tag/category archive for Jekyll Archives plugin
|
| ├── archive-taxonomy.html # tag/category archive for Jekyll Archives plugin
|
||||||
| ├── archive.html # archive listing documents in an array
|
| ├── archive.html # archive base
|
||||||
|
| ├── categories.html # archive listing posts grouped by category
|
||||||
|
| ├── category.html # archive listing posts grouped by specific category
|
||||||
|
| ├── collection.html # archive listing documents in a specific collection
|
||||||
| ├── compress.html # compresses HTML in pure Liquid
|
| ├── compress.html # compresses HTML in pure Liquid
|
||||||
| ├── default.html # base for all other layouts
|
| ├── default.html # base for all other layouts
|
||||||
| ├── home.html # home page
|
| ├── home.html # home page
|
||||||
|
| ├── posts.html # archive listing posts grouped by year
|
||||||
| ├── search.html # search page
|
| ├── search.html # search page
|
||||||
| ├── single.html # single document (post/page/etc)
|
| ├── single.html # single document (post/page/etc)
|
||||||
|
| ├── tag.html # archive listing posts grouped by specific tag
|
||||||
|
| ├── tags.html # archive listing posts grouped by tags
|
||||||
| └── splash.html # splash page
|
| └── splash.html # splash page
|
||||||
├── _sass # SCSS partials
|
├── _sass # SCSS partials
|
||||||
├── assets
|
├── assets
|
||||||
|
|
|
@ -40,6 +40,11 @@ Class names corresponding to each layout are automatically added to the `<body>`
|
||||||
| single | `.layout--single` |
|
| single | `.layout--single` |
|
||||||
| splash | `.layout--splash` |
|
| splash | `.layout--splash` |
|
||||||
| home | `.layout--home` |
|
| home | `.layout--home` |
|
||||||
|
| posts | `.layout--posts` |
|
||||||
|
| categories | `.layout--categories` |
|
||||||
|
| category | `.layout--category` |
|
||||||
|
| tags | `.layout--tags` |
|
||||||
|
| tag | `.layout--tag` |
|
||||||
|
|
||||||
Using YAML Front Matter you can also assign custom classes to target with CSS or JavaScript. Perfect for "art directed" posts or adding custom styles to specific pages.
|
Using YAML Front Matter you can also assign custom classes to target with CSS or JavaScript. Perfect for "art directed" posts or adding custom styles to specific pages.
|
||||||
|
|
||||||
|
|
|
@ -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: 2018-03-20T11:48:04-04:00
|
last_modified_at: 2018-03-20T15:28:11-04:00
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ toc: true
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
* Add default `theme` and `remote_theme` values to `_config.yml`.
|
* Add default `theme` and `remote_theme` values to `_config.yml`.
|
||||||
|
* Add new layouts (`posts`, `categories`, `tags`, `collection`, `category`, and `tag`) for easier archive page creation.(https://github.com/mmistakes/minimal-mistakes/issues/1582)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue