{{ 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" }} *
+
+
+
+ {% if site.reCaptcha.siteKey %}{% endif %}
+ {% endif %}
+
{% when "custom" %}
{% endcase %}
diff --git a/staticfile.yml b/staticfile.yml
new file mode 100644
index 00000000..3c90df2a
--- /dev/null
+++ b/staticfile.yml
@@ -0,0 +1,104 @@
+# Name of the property. You can have multiple properties with completely
+# different config blocks for different sections of your site.
+# For example, you can have one property to handle comment submission and
+# another one to handle posts.
+# To encrypt strings use the following endpoint:
+# https://api.staticman.net/v2/encrypt/{TEXT TO BE ENCRYPTED}
+
+comments:
+ # (*) REQUIRED
+ #
+ # Names of the fields the form is allowed to submit. If a field that is
+ # not here is part of the request, an error will be thrown.
+ allowedFields: ["name", "email", "url", "message"]
+
+ # (*) REQUIRED WHEN USING NOTIFICATIONS
+ #
+ # When allowedOrigins is defined, only requests sent from one of the domains
+ # listed will be accepted. The origin is sent as part as the `options` object
+ # (e.g.
{{ 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 %} +