From ef464c868ea950e54d228564246e54a2720d1bec Mon Sep 17 00:00:00 2001 From: Hyuk Min Date: Thu, 2 Jan 2025 03:20:46 +0900 Subject: [PATCH] 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 1e42e3f6..21cd7114 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -65,8 +65,15 @@ layout: default {% include post_pagination.html %} - {% 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 %}