docs/_includes/comments.html
{% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %} {% case site.comments.provider %} {% when "discourse" %}
{% when "disqus" %}
{% when "facebook" %}
{% when "staticman_v2" %} {% if site.repository and site.comments.staticman.branch %} {% if site.data.comments[page.slug] %}
{% assign comments = site.data.comments[page.slug] | sort %} {% for comment in comments %} {% assign email = comment[1].email %} {% assign name = comment[1].name %} {% assign url = comment[1].url %} {% assign date = comment[1].date %} {% assign message = comment[1].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].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..." }}
{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} * {{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}
{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} *
{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} *
{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}
Not used. Leave blank if you are a human. {% if site.reCaptcha.siteKey %}{% endif %} {% if site.reCaptcha.secret %}{% endif %}
{% if site.reCaptcha.siteKey %}
{% endif %} {{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}
{% if site.reCaptcha.siteKey %}{% endif %} {% endif %} {% when "staticman" %} {% if site.repository and site.staticman.branch %} {% if site.data.comments[page.slug] %}
{% assign comments = site.data.comments[page.slug] | sort %} {% for comment in comments %} {% assign email = comment[1].email %} {% assign name = comment[1].name %} {% assign url = comment[1].url %} {% assign date = comment[1].date %} {% assign message = comment[1].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].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..." }}
{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} * {{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}
{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} *
{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} *
{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}
Not used. Leave blank if you are a human.
{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}
{% endif %} {% when "utterances" %}
{% when "custom" %} {% include /comments-providers/custom.html %} {% endcase %}