diff --git a/_config.yml b/_config.yml index a008068f..985fabed 100644 --- a/_config.yml +++ b/_config.yml @@ -35,8 +35,7 @@ comments: facebook: # https://developers.facebook.com/docs/plugins/comments appid : - num_posts : # 5 - width : # 580 + num_posts : # 5 (default) colorscheme : # "light" (default), "dark" google_site_verification : bing_site_verification : diff --git a/_includes/comments-providers/scripts.html b/_includes/comments-providers/scripts.html new file mode 100644 index 00000000..df699fc5 --- /dev/null +++ b/_includes/comments-providers/scripts.html @@ -0,0 +1,14 @@ +{% if site.comments.provider and page.comments %} + +{% case site.comments.provider %} +{% when "disqus" %} + {% include /comments-providers/disqus.html %} +{% when "facebook" %} + {% include /comments-providers/facebook.html %} +{% when "google-plus" %} + {% include /comments-providers/google-plus.html %} +{% when "custom" %} + {% include /comments-providers/custom.html %} +{% endcase %} + +{% endif %} \ No newline at end of file diff --git a/_includes/comments.html b/_includes/comments.html index df699fc5..66536d25 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -1,14 +1,11 @@ -{% if site.comments.provider and page.comments %} - +