Skip to content

Commit 09c53d9

Browse files
committed
Fix the format of showing disqus comment counts
1 parent 1a666fa commit 09c53d9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

_layouts/home.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ <h2>
2222
{{ post.title | escape }}
2323
</a>
2424
</h2>
25-
<span class="post-meta">{{ post.date | date: date_format }}</span>
26-
{%- if jekyll.environment == "production" and site.disqus -%}
27-
<span class="post-meta disqus-comment-count" data-disqus-url="{{ post.url | absolute_url }}"></span>
28-
{%- endif -%}
25+
<p class="post-meta">
26+
<time class="dt-published">{{ post.date | date: date_format }}</time>
27+
{%- if jekyll.environment == "production" and site.disqus -%}
28+
<a href="{{ post.url | relative_url }}#disqus_thread">
29+
<span class="disqus-comment-count" data-disqus-url="{{ post.url | absolute_url }}"></span>
30+
</a>
31+
{%- endif -%}
32+
</p>
2933
{%- if post.show_excerpts != false -%}
3034
<div class="post-excerpt">{{ post.excerpt | strip_html }}</div>
3135
{%- endif -%}

0 commit comments

Comments
 (0)