From b543ca0d8f0af16bd118406227bdbb9c08fe8ea2 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 2 Oct 2016 11:14:46 +0300 Subject: [PATCH 1/5] Add Hypercomments --- _config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_config.yml b/_config.yml index 6dee5ee72..b00986ce5 100755 --- a/_config.yml +++ b/_config.yml @@ -244,6 +244,9 @@ mathjax: # Disqus #disqus_shortname: +# Hypercomments +#hypercomments_id: + # Baidu Share # Available value: # button | slide From 4e779dabbe3b0d7b84e7b5057080cf01c77a049a Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 2 Oct 2016 11:56:59 +0300 Subject: [PATCH 2/5] Add Hypercomments --- layout/_macro/post.swig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index 98f51f04f..cf90e4513 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -94,6 +94,18 @@ + {% elseif theme.hypercomments_id %} + + +  |  + + + {% endif %} {% endif %} From b87893ad9929ff83c1cf1a2ce3822c836c0875cd Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 2 Oct 2016 12:07:20 +0300 Subject: [PATCH 3/5] Add Hypercomments --- layout/_scripts/third-party/comments.swig | 1 + 1 file changed, 1 insertion(+) diff --git a/layout/_scripts/third-party/comments.swig b/layout/_scripts/third-party/comments.swig index fadd6d07d..a84576862 100644 --- a/layout/_scripts/third-party/comments.swig +++ b/layout/_scripts/third-party/comments.swig @@ -1,2 +1,3 @@ {% include './comments/duoshuo.swig' %} {% include './comments/disqus.swig' %} +{% include './comments/hypercomments.swig' %} From d73ad42ce60e5e7e04a6076695b3debded27e75d Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 2 Oct 2016 12:10:31 +0300 Subject: [PATCH 4/5] Create hypercomments.swig --- .../third-party/comments/hypercomments.swig | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 layout/_scripts/third-party/comments/hypercomments.swig diff --git a/layout/_scripts/third-party/comments/hypercomments.swig b/layout/_scripts/third-party/comments/hypercomments.swig new file mode 100644 index 000000000..de693e433 --- /dev/null +++ b/layout/_scripts/third-party/comments/hypercomments.swig @@ -0,0 +1,27 @@ +{% if not (theme.duoshuo and theme.duoshuo.shortname) and not theme.duoshuo_shortname and not theme.disqus_shortname %} + + {% if theme.hypercomments_id %} + + + + {% endif %} + +{% endif %} From 04f494140d55696020a43a5f070b7311d0ef8a6d Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Sun, 2 Oct 2016 12:23:11 +0300 Subject: [PATCH 5/5] Add Hypercomments --- layout/_partials/comments.swig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/_partials/comments.swig b/layout/_partials/comments.swig index 90cecd13a..a6a9f4c41 100644 --- a/layout/_partials/comments.swig +++ b/layout/_partials/comments.swig @@ -11,6 +11,8 @@ comments powered by Disqus. + {% elseif theme.hypercomments_id %} +
{% endif %} {% endif %}