diff --git a/_includes/head/links-static.html b/_includes/head/links-static.html index 18362c67776..7a581db468f 100644 --- a/_includes/head/links-static.html +++ b/_includes/head/links-static.html @@ -25,7 +25,7 @@ {% endif %} -{% assign disqus = site.disqus | default:site.disqus_shortname %} +{% assign disqus = site.comments.disqus %} {% if disqus %} - + {% endif %} \ No newline at end of file diff --git a/_includes/my-comments.html b/_includes/my-comments.html index 8e4377a868f..22b59d45b30 100644 --- a/_includes/my-comments.html +++ b/_includes/my-comments.html @@ -1,5 +1,21 @@ -{% assign disqus = site.disqus | default:site.disqus_shortname %} +{% assign provider = site.comments.provider | default: 'disqus' %} + +{% if provider == "disqus" %} + +{% assign disqus = site.comments.disqus %} {% if disqus %} + + + +
{% endif %} + +{% elsif provider == "waline" %} + +{% assign waline = site.comments.waline %} +{% if waline %} + + + + + + + + + + + + +{% endif %} + +{% endif %} \ No newline at end of file