diff --git a/_config.yml b/_config.yml
index 519c56fa..5444603d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -18,9 +18,9 @@ teaser : # filename of teaser fallback teaser image placed in
# breadcrumbs : false # true, false (default)
words_per_minute : 200
comments:
- provider : "disqus"
+ provider : "staticman" # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
disqus:
- shortname : "minimalmistakes"
+ shortname :
discourse:
server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
facebook:
@@ -29,7 +29,7 @@ comments:
num_posts : # 5 (default)
colorscheme : # "light" (default), "dark"
staticman:
- allowedFields : ['name', 'email', 'url', 'message', 'date']
+ allowedFields : ['name', 'email', 'url', 'message']
branch : "gh-pages" # "master", "gh-pages"
commitMessage : "New comment."
format : "yml"
diff --git a/_includes/comment.html b/_includes/comment.html
new file mode 100644
index 00000000..17e874a6
--- /dev/null
+++ b/_includes/comment.html
@@ -0,0 +1,22 @@
+
\ No newline at end of file
diff --git a/_includes/comments-providers/scripts.html b/_includes/comments-providers/scripts.html
index 0da90c5d..ed192f7e 100644
--- a/_includes/comments-providers/scripts.html
+++ b/_includes/comments-providers/scripts.html
@@ -9,6 +9,8 @@
{% include /comments-providers/facebook.html %}
{% when "google-plus" %}
{% include /comments-providers/google-plus.html %}
+{% when "staticman" %}
+ {% include /comments-providers/staticman.html %}
{% when "custom" %}
{% include /comments-providers/custom.html %}
{% endcase %}
diff --git a/_includes/comments-providers/staticman.html b/_includes/comments-providers/staticman.html
new file mode 100644
index 00000000..9f478888
--- /dev/null
+++ b/_includes/comments-providers/staticman.html
@@ -0,0 +1,52 @@
+{% if site.repository and site.staticman.branch %}
+
+
+
+
+
+
+
+
+
+
+
+{% endif %}
\ No newline at end of file
diff --git a/_includes/comments.html b/_includes/comments.html
index a01af60f..e7685fce 100644
--- a/_includes/comments.html
+++ b/_includes/comments.html
@@ -9,6 +9,63 @@
{% when "google-plus" %}
+ {% when "staticman" %}
+
{% when "custom" %}
{% endcase %}
{{ 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 %} +