{% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %} {% case site.comments.provider %} {% when "discourse" %}

{{ comments_label }}

{% when "disqus" %}

{{ comments_label }}

{% when "facebook" %}

{{ comments_label }}

{% when "staticman_v2" %}
{% if site.repository and site.comments.staticman.branch %}
{% if site.data.comments[page.slug] %}

{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}

{% assign comments = site.data.comments[page.slug] %} {% assign commentObjects = '' | split: '' %} {% for comment in comments %} {% assign commentObject = comment[1] %} {% assign commentObjects = commentObjects | push: commentObject %} {% endfor %} {% assign comments = commentObjects | sort: "date" %} {% for comment in comments %} {% assign email = comment.email %} {% assign name = comment.name %} {% assign url = comment.url %} {% assign date = comment.date %} {% assign message = comment.message %} {% include comment.html index=forloop.index email=email name=name url=url date=date message=message %} {% endfor %} {% endif %}

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}
{% if site.reCaptcha.siteKey %}
{% endif %}
{% if site.reCaptcha.siteKey %}{% endif %} {% endif %}
{% when "staticman" %}
{% if site.repository and site.staticman.branch %}
{% if site.data.comments[page.slug] %}

{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}

{% assign comments = site.data.comments[page.slug] %} {% assign commentObjects = '' | split: '' %} {% for comment in comments %} {% assign commentObject = comment[1] %} {% assign commentObjects = commentObjects | push: commentObject %} {% endfor %} {% assign comments = commentObjects | sort: "date" %} {% for comment in comments %} {% assign email = comment.email %} {% assign name = comment.name %} {% assign url = comment.url %} {% assign date = comment.date %} {% assign message = comment.message %} {% include comment.html index=forloop.index email=email name=name url=url date=date message=message %} {% endfor %} {% endif %}

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}
{% endif %}
{% when "utterances" %}

{{ comments_label }}

{% when "giscus" %}

{{ comments_label }}

{% when "custom" %} {% include /comments-providers/custom.html %} {% endcase %}