From 89c4169191165d8cbc765457e536bb3eda687c78 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 8 Jan 2019 08:32:24 -0500 Subject: [PATCH] Update CHANGELOG, history, and `canonical_url` documentation --- CHANGELOG.md | 1 + docs/_docs/10-layouts.md | 18 +++++++++++++++++- docs/_docs/18-history.md | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f39831a..ef963364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Enhancements +- Allow custom canonical url on a page-by-page basis. [#2021](https://github.com/mmistakes/minimal-mistakes/pull/2021) - Update table of contents navigation based on scroll position to indicate which link is currently active in the viewport. [#2020](https://github.com/mmistakes/minimal-mistakes/pull/2020) - Clicking table of contents links changes URL has fragment. [#2019](https://github.com/mmistakes/minimal-mistakes/pull/2019) diff --git a/docs/_docs/10-layouts.md b/docs/_docs/10-layouts.md index deafc792..25ff4efa 100644 --- a/docs/_docs/10-layouts.md +++ b/docs/_docs/10-layouts.md @@ -7,7 +7,7 @@ single_layout_gallery: alt: "single layout with header example" - image_path: /assets/images/mm-layout-single-meta.png alt: "single layout with comments and related posts" -last_modified_at: 2018-11-25T19:45:55-05:00 +last_modified_at: 2019-01-08T08:31:40-05:00 toc: true toc_label: "Included Layouts" toc_icon: "columns" @@ -65,6 +65,22 @@ Outputs: ``` +### Canonical URL + +You can set custom Canonical URL for a page by specifying `canonical_url` option in pages YAML Front Matter. For example, if you have the following: + +```yaml +layout: single +title: Title of Your Post +canonical_url: "https://yoursite.com/custom-canonical-url" +``` + +This will generate the following in the `` of your page: + +```html + +``` + ## Compress layout A Jekyll layout that compresses HTML in pure Liquid. To enable add `layout: compress` to `_layouts/default.html`. diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 096bc95d..a0ea9d2d 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: 2019-01-08T08:21:55-05:00 +last_modified_at: 2019-01-08T08:24:03-05:00 toc: true --- @@ -12,6 +12,7 @@ toc: true ### Enhancements +- Allow custom canonical url on a page-by-page basis. [#2021](https://github.com/mmistakes/minimal-mistakes/pull/2021) - Update table of contents navigation based on scroll position to indicate which link is currently active in the viewport. [#2020](https://github.com/mmistakes/minimal-mistakes/pull/2020) - Clicking table of contents links changes URL has fragment. [#2019](https://github.com/mmistakes/minimal-mistakes/pull/2019)