From 94dcda2d89f3e248edcdbfe67fedeb9b275445b4 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 5 Jul 2017 12:07:27 -0400 Subject: [PATCH] Update Google+ page comments for /docs --- .../_includes/comments-providers/scripts.html | 30 ++-- docs/_includes/comments.html | 168 ++++++++++-------- 2 files changed, 104 insertions(+), 94 deletions(-) diff --git a/docs/_includes/comments-providers/scripts.html b/docs/_includes/comments-providers/scripts.html index ed192f7e..1eb536f2 100644 --- a/docs/_includes/comments-providers/scripts.html +++ b/docs/_includes/comments-providers/scripts.html @@ -1,18 +1,16 @@ {% if site.comments.provider and page.comments %} - -{% case site.comments.provider %} -{% when "disqus" %} - {% include /comments-providers/disqus.html %} -{% when "discourse" %} - {% include /comments-providers/discourse.html %} -{% when "facebook" %} - {% 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 %} - + {% case site.comments.provider %} + {% when "disqus" %} + {% include /comments-providers/disqus.html %} + {% when "discourse" %} + {% include /comments-providers/discourse.html %} + {% when "facebook" %} + {% 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 %} {% endif %} \ No newline at end of file diff --git a/docs/_includes/comments.html b/docs/_includes/comments.html index ecf10272..6f57edc9 100644 --- a/docs/_includes/comments.html +++ b/docs/_includes/comments.html @@ -1,83 +1,95 @@
{% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %} - {% case site.comments.provider %} - {% when "discourse" %} -

{{ comments_label }}

-
- {% when "disqus" %} -

{{ comments_label }}

-
- {% when "facebook" %} -

{{ comments_label }}

-
- {% when "google-plus" %} -

{{ comments_label }}

-
Loading Google+ Comments ...
- {% when "staticman" %} -
- {% if site.repository and site.staticman.branch %} - -
- {% if site.data.comments[page.slug] %} -

{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}

- {% assign comments = site.data.comments[page.slug] | sort %} + {% case site.comments.provider %} + {% when "discourse" %} +

{{ comments_label }}

+
+ {% when "disqus" %} +

{{ comments_label }}

+
+ {% when "facebook" %} +

{{ comments_label }}

+
+ {% when "google-plus" %} +

{{ comments_label }}

+
Loading Google+ Comments ...
+ +