Skip to content

Commit

Permalink
Merge branch 'mmistakes:master' into update
Browse files Browse the repository at this point in the history
  • Loading branch information
SoekHun authored Jan 4, 2025
2 parents 255f77f + 8f02ec7 commit 68cf2f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- For pages without a title, show the site title only once (#4959)
- Use `documents-collection.html` partial in `home` layout.
- Add Bulgarian translation. [#5003](https://github.com/mmistakes/minimal-mistakes/pull/5003)
- Add provider and comments info to `single.html` layout for non-production. (#5068)

### Bug Fixes

Expand Down
11 changes: 9 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,15 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% include post_pagination.html %}
</div>

{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
{% include comments.html %}
{% if site.comments.provider and page.comments %}
{% if jekyll.environment == 'production' %}
{% include comments.html %}
{% else %}
<p>
Comments are configured with provider: <strong>{{ site.comments.provider }}</strong>,
but are disabled in non-production environments.
</p>
{% endif %}
{% endif %}
</article>

Expand Down
3 changes: 2 additions & 1 deletion 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-11-28T01:11:41+08:00'
last_modified_at: '2025-01-02T02:21:49+08:00'
toc: false
---

Expand All @@ -27,6 +27,7 @@ toc: false
- For pages without a title, show the site title only once [#4959](https://github.com/mmistakes/minimal-mistakes/issues/4959)
- Use `documents-collection.html` partial in `home` layout.
- Add Bulgarian translation. [#5003](https://github.com/mmistakes/minimal-mistakes/pull/5003)
- Add provider and comments info to `single.html` layout for non-production. [#5068](https://github.com/mmistakes/minimal-mistakes/issues/5068)

### Bug Fixes

Expand Down

0 comments on commit 68cf2f4

Please sign in to comment.