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 GitHub
parent 85e1ba131e
commit ef464c868e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,8 +65,15 @@ layout: default
{% 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>