Skip to content

Commit

Permalink
Fix space after comment count (theme-next#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtj authored and 1v9 committed Aug 16, 2019
1 parent 96f1175 commit e3bba55
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions scripts/filters/comment/changyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ hexo.extend.filter.register('theme_inject', injects => {
<span class="post-meta-item">
${iconText('comment-o', 'changyan')}
{% if is_post() %}
<a title="changyan" href="{{ url_for(post.path) }}#SOHUCS" itemprop="discussionUrl">
<span id="changyan_count_unit" class="post-comments-count hc-comment-count" data-xid="{{ post.path }}" itemprop="commentCount"></span>
</a>
<a title="changyan" href="{{ url_for(post.path) }}#SOHUCS" itemprop="discussionUrl">{#
#}<span id="changyan_count_unit" class="post-comments-count hc-comment-count" data-xid="{{ post.path }}" itemprop="commentCount"></span>{#
#}</a>
{% else %}
<a title="changyan" href="{{ url_for(post.path) }}#SOHUCS" itemprop="discussionUrl">
<span id="url::{{ post.permalink }}" class="cy_cmt_count" data-xid="{{ post.path }}" itemprop="commentCount"></span>
</a>
<a title="changyan" href="{{ url_for(post.path) }}#SOHUCS" itemprop="discussionUrl">{#
#}<span id="url::{{ post.permalink }}" class="cy_cmt_count" data-xid="{{ post.path }}" itemprop="commentCount"></span>{#
#}</a>
{% endif %}
</span>
{% endif %}
Expand Down
6 changes: 3 additions & 3 deletions scripts/filters/comment/disqus.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ 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">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="{{ post.path }}" itemprop="commentCount"></span>
</a>
<a title="disqus" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">{#
#}<span class="post-comments-count disqus-comment-count" data-disqus-identifier="{{ post.path }}" itemprop="commentCount"></span>{#
#}</a>
</span>
{% endif %}
`);
Expand Down
8 changes: 4 additions & 4 deletions scripts/filters/comment/facebook-comments-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ hexo.extend.filter.register('theme_inject', injects => {
</div>
`, {
configKey: 'facebook_comments_plugin',
button: '<i class="fa fa-facebook-official" aria-hidden="true"></i> facebook'
button : '<i class="fa fa-facebook-official" aria-hidden="true"></i> facebook'
});

}, priority.facebook_comments_plugin);
Expand All @@ -35,9 +35,9 @@ hexo.extend.filter.register('theme_inject', injects => {
{% if post.comments %}
<span class="post-meta-item">
${iconText('comment-o', 'facebook')}
<a title="facebook comments" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
<span class="post-comments-count fb-comments-count" data-href="{{ post.permalink }}" itemprop="commentCount">0</span>
</a>
<a title="facebook comments" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">{#
#}<span class="post-comments-count fb-comments-count" data-href="{{ post.permalink }}" itemprop="commentCount">0</span>{#
#}</a>
</span>
{% endif %}
`);
Expand Down
6 changes: 3 additions & 3 deletions scripts/filters/comment/valine.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ 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">
<span class="post-comments-count valine-comment-count" data-xid="{{ url_for(post.path) }}" itemprop="commentCount"></span>
</a>
<a title="valine" href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">{#
#}<span class="post-comments-count valine-comment-count" data-xid="{{ url_for(post.path) }}" itemprop="commentCount"></span>{#
#}</a>
</span>
{% endif %}
`);
Expand Down

0 comments on commit e3bba55

Please sign in to comment.