feat(single.html): Add provider and comments info for non-production (#5068)

This commit is contained in:
Hyuk Min 2025-01-02 03:20:46 +09:00 committed by Steffen Illium
parent 120f8674cb
commit ff8a73921f

View File

@ -68,8 +68,15 @@ layout: default
{% include post_pagination.html %}
</div>
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
{% 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>