Skip to content

Commit

Permalink
Add _includes/before-related.html and remove docs site single layout …
Browse files Browse the repository at this point in the history
…override
  • Loading branch information
iBug committed Apr 23, 2024
1 parent a0aa8f8 commit 5e3d140
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 100 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +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.
- Add `after-content.html` and `before-related.html` includes to ease docs site overrides.

## [4.25.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.0)

Expand Down
Empty file added _includes/before-related.html
Empty file.
1 change: 1 addition & 0 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
<div class="page__related">
{% include before-related.html %}
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
<div class="grid__wrapper">
{% for post in site.related_posts limit:4 %}
Expand Down
4 changes: 2 additions & 2 deletions docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-23T12:01:43+08:00'
last_modified_at: '2024-04-23T12:08:54+08:00'
toc: false
---

Expand All @@ -24,7 +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.
- Add `after-content.html` and `before-related.html` includes to ease docs site overrides.

## [4.25.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.0)

Expand Down
1 change: 1 addition & 0 deletions docs/_includes/before-related.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include after-content.html %}
97 changes: 0 additions & 97 deletions docs/_layouts/single.html

This file was deleted.

0 comments on commit 5e3d140

Please sign in to comment.