From ef464c868ea950e54d228564246e54a2720d1bec Mon Sep 17 00:00:00 2001 From: Hyuk Min Date: Thu, 2 Jan 2025 03:20:46 +0900 Subject: [PATCH 1/2] feat(single.html): Add provider and comments info for non-production (#5068) --- _layouts/single.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/_layouts/single.html b/_layouts/single.html index 1e42e3f6b8a4..21cd71144b56 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -65,8 +65,15 @@

{{ site.data.ui-text[site.locale].meta_label }}

- {% 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 %} +

+ Comments are configured with provider: {{ site.comments.provider }}, + but are disabled in non-production environments. +

+ {% endif %} {% endif %} From 8f02ec7714de5cad0509dcbd965ed70cba85213f Mon Sep 17 00:00:00 2001 From: iBug Date: Thu, 2 Jan 2025 02:21:53 +0800 Subject: [PATCH 2/2] Update CHANGELOG and history --- CHANGELOG.md | 1 + docs/_docs/18-history.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4888be0b3a7..18d1d307ea31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 31eed2922fbb..2e881ff50bdc 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-11-28T01:11:41+08:00' +last_modified_at: '2025-01-02T02:21:49+08:00' toc: false --- @@ -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