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

This commit is contained in:
Hyuk Min
2025-01-02 03:20:46 +09:00
committed by GitHub
parent 85e1ba131e
commit ef464c868e

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