Back to Deepspeed

Comments

docs/_includes/comments.html

0.18.93.7 KB
Original Source

{% 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] | 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].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..." }}

{{ 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] %}

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

{% 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].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..." }}

{{ 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" %}

{{ comments_label }}

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