From ff8a73921f56b1829e4b21cd60d652aea0634c8d 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 738fc4c5..2e87309d 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -68,8 +68,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 %}