Skip to content

Commit

Permalink
feat(single.html): Add provider and comments info for non-production (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JUD210 authored Jan 1, 2025
1 parent 85e1ba1 commit ef464c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,15 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% 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>

Expand Down

0 comments on commit ef464c8

Please sign in to comment.