diff --git a/_config.yml b/_config.yml index 10d23e8..0aa900d 100644 --- a/_config.yml +++ b/_config.yml @@ -12,9 +12,16 @@ google_verify: # https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here bing_verify: -# Contact form: comment the line below if you want to stick with the default PHP contact form +# Contact form: +# - static : pass through formspree.io to validate email sending +# - disqus : replace contact form by disqus thread +# - comment the line below if you want to stick with the default PHP contact form contact: static +# If you use disqus you need disqus shortname +# https://help.disqus.com/customer/portal/articles/466208 +disqus_shortname: myshortname + # Color settings (hex-codes without the leading hash-tag) color: primary: 18bc9c #80B3FF diff --git a/_includes/contact_disqus.html b/_includes/contact_disqus.html new file mode 100644 index 0000000..8189a3c --- /dev/null +++ b/_includes/contact_disqus.html @@ -0,0 +1,16 @@ + +
+
+
+
+

Contact me

+
+
+
+
+
+
+
+
+
+
diff --git a/_includes/js.html b/_includes/js.html index 7d37df5..9357111 100644 --- a/_includes/js.html +++ b/_includes/js.html @@ -19,3 +19,8 @@ + + {% if site.contact == "disqus" %} + + {% include js_disqus.html %} + {% endif %} diff --git a/_includes/js_disqus.html b/_includes/js_disqus.html new file mode 100644 index 0000000..0144c3a --- /dev/null +++ b/_includes/js_disqus.html @@ -0,0 +1,21 @@ + + +comments powered by Disqus diff --git a/_layouts/default.html b/_layouts/default.html index 0482848..640dc5f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,6 +9,8 @@ {% if site.contact == "static" %} {% include contact_static.html %} + {% elsif site.contact == "disqus" %} + {% include contact_disqus.html %} {% else %} {% include contact.html %} {% endif %}