From 483184d5665cbfa6f60ab2b6aba9bc84cb1961e5 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 20 Mar 2018 15:34:10 -0400 Subject: [PATCH] Add new layouts --- CHANGELOG.md | 1 + docs/_docs/02-structure.md | 10 ++++++++-- docs/_docs/10-layouts.md | 5 +++++ docs/_docs/18-history.md | 3 ++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28438851..25452775 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Enhancements * 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 diff --git a/docs/_docs/02-structure.md b/docs/_docs/02-structure.md index 559e3137..ec064f3b 100644 --- a/docs/_docs/02-structure.md +++ b/docs/_docs/02-structure.md @@ -2,7 +2,7 @@ title: "Structure" permalink: /docs/structure/ 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. @@ -29,12 +29,18 @@ minimal-mistakes | └── ... ├── _layouts | ├── 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 | ├── default.html # base for all other layouts | ├── home.html # home page +| ├── posts.html # archive listing posts grouped by year | ├── search.html # search page | ├── 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 ├── _sass # SCSS partials ├── assets diff --git a/docs/_docs/10-layouts.md b/docs/_docs/10-layouts.md index deecf9c5..6af9cb69 100644 --- a/docs/_docs/10-layouts.md +++ b/docs/_docs/10-layouts.md @@ -40,6 +40,11 @@ Class names corresponding to each layout are automatically added to the `` | single | `.layout--single` | | splash | `.layout--splash` | | 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. diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index d8064727..3e58e459 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -4,7 +4,7 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2018-03-20T11:48:04-04:00 +last_modified_at: 2018-03-20T15:28:11-04:00 toc: true --- @@ -13,6 +13,7 @@ toc: true ### Enhancements * 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