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 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 %} 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 %} 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' %} 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 %}