Skip to content

Commit

Permalink
Fix valine & disqus meta for theme-next#1305 (theme-next#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
sli1989 authored and stevenjoezhang committed Jan 22, 2020
1 parent 9eac218 commit 1f7dc07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/filters/comment/disqus.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ hexo.extend.filter.register('theme_inject', injects => {
{% if post.comments %}
<span class="post-meta-item">
${iconText('comment-o', 'disqus')}
<a title="disqus" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
<a title="disqus" href="{{ url_for(post.path) }}#disqus_thread" itemprop="discussionUrl">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="{{ post.path }}" itemprop="commentCount"></span>
</a>
</span>
Expand Down
2 changes: 1 addition & 1 deletion scripts/filters/comment/valine.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ hexo.extend.filter.register('theme_inject', injects => {
{% if post.comments and (is_post() or theme.valine.comment_count) %}
<span class="post-meta-item">
${iconText('comment-o', 'valine')}
<a title="valine" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
<a title="valine" href="{{ url_for(post.path) }}#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="{{ url_for(post.path) }}" itemprop="commentCount"></span>
</a>
</span>
Expand Down

0 comments on commit 1f7dc07

Please sign in to comment.