From a0aa8f80a73a557c445cbf0c95a7723c4d07b344 Mon Sep 17 00:00:00 2001 From: iBug Date: Tue, 23 Apr 2024 12:01:53 +0800 Subject: [PATCH] Add _includes/after-content.html and remove docs site default layout override --- CHANGELOG.md | 1 + _includes/after-content.html | 0 _layouts/default.html | 2 +- docs/_docs/18-history.md | 3 +- docs/_includes/after-content.html | 8 +++ .../_includes/comments-providers/scripts.html | 11 ++++ docs/_layouts/default.html | 51 ------------------- 7 files changed, 23 insertions(+), 53 deletions(-) create mode 100644 _includes/after-content.html create mode 100644 docs/_includes/after-content.html create mode 100644 docs/_includes/comments-providers/scripts.html delete mode 100644 docs/_layouts/default.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5c2d8d..0eb3b85f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Maintenance - Bump shell-quote from 1.7.1 to 1.7.3 [#3692](https://github.com/mmistakes/minimal-mistakes/issues/3692) +- Add `after-content.html` include to ease docs site overrides. ## [4.25.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.0) diff --git a/_includes/after-content.html b/_includes/after-content.html new file mode 100644 index 00000000..e69de29b diff --git a/_layouts/default.html b/_layouts/default.html index 39c6783a..55ecf104 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,6 +15,7 @@
{{ content }} + {% include after-content.html %}
{% if site.search == true %} @@ -31,6 +32,5 @@ {% include scripts.html %} - diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 10734f18..37d1c4e5 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -5,7 +5,7 @@ permalink: "/docs/history/" excerpt: Change log of enhancements and bug fixes made to the theme. sidebar: nav: docs -last_modified_at: '2024-04-23T11:44:09+08:00' +last_modified_at: '2024-04-23T12:01:43+08:00' toc: false --- @@ -24,6 +24,7 @@ toc: false ### Maintenance - Bump shell-quote from 1.7.1 to 1.7.3 [#3692](https://github.com/mmistakes/minimal-mistakes/issues/3692) +- Add `after-content.html` include to ease docs site overrides. ## [4.25.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.0) diff --git a/docs/_includes/after-content.html b/docs/_includes/after-content.html new file mode 100644 index 00000000..482c530b --- /dev/null +++ b/docs/_includes/after-content.html @@ -0,0 +1,8 @@ +
+ +
diff --git a/docs/_includes/comments-providers/scripts.html b/docs/_includes/comments-providers/scripts.html new file mode 100644 index 00000000..5617ab89 --- /dev/null +++ b/docs/_includes/comments-providers/scripts.html @@ -0,0 +1,11 @@ +{% comment %} + Repurposing this file as "after-scripts.html" snippet, + since the docs site isn't using comments anyway. +{% endcomment %} + + + diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html deleted file mode 100644 index 0257dc0f..00000000 --- a/docs/_layouts/default.html +++ /dev/null @@ -1,51 +0,0 @@ ---- ---- - - -{% include copyright.html %} - - - {% include head.html %} - {% include head/custom.html %} - - - - {% include_cached skip-links.html %} - {% include masthead.html %} - -
- {{ content }} -
- -
-
- - {% if site.search == true %} -
- {% include search/search_form.html %} -
- {% endif %} - - - - {% include scripts.html %} - - - - - -