hexojs / hexo-generator-feed

Feed generator for Hexo.

Home Page:http://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable comments or make it customizable

jiangtj opened this issue · comments

commented

{% if post.comments %}
<comments>{{ post.permalink | uriencode }}#disqus_thread</comments>
{% endif %}

If post.comment is true, it will set disqus comment uri, but it is not all people use disqus.

I think it's better to disable comments or make it customizable

Hi,

It seems to be a legitimate request.
What kind of comments are you using ?
Would it be enough to make the "#disqus_thread" customizable ?

commented

FYI, Hexo never add comment nor comments during processing. Thus in most case the comment won't exist.

commented

FYI, Hexo never add comment nor comments during processing. Thus in most case the comment won't exist.

By default, comments is true
https://github.com/hexojs/hexo/blob/2dfaa6a600594ed5d087da683d67b7bc83fd2646/lib/models/page.js#L23

What kind of comments are you using ?

disqus 😂 , this problem didn't affect me, I just found it by accident

Would it be enough to make the "#disqus_thread" customizable ?

Maybe add another page variable, e.g. comments_url?