Skip to content

Commit dec3539

Browse files
committed
Added disqus identifiers to comment links
1 parent 9e3410c commit dec3539

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_layouts/blog.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3 class="text-truncate">
3131
{% if first_post.categories.size > 0 %}
3232
<span class="d-none d-lg-inline post-meta mb-2">{{ first_post.categories[0] }} | </span>
3333
{% endif %}
34-
<span class="post-meta mb-2">{{ first_post.author }} | {{ first_post.date | date: date_format }}</span> | <a class="post-link comments" href="{{ first_post.url | absolute_url }}#discuss_thread">Comments</a>
34+
<span class="post-meta mb-2">{{ first_post.author }} | {{ first_post.date | date: date_format }}</span> | <a class="post-link comments" href="{{ first_post.url | absolute_url }}#discuss_thread" data-disqus-identifier="{{ first_post.url | absolute_url }}">Comments</a>
3535
</div>
3636
{%- if site.show_excerpts -%}
3737
<p>{{ first_post.excerpt | markdownify | remove: '<p class="lead">' | remove: '</p>' }}</p>
@@ -65,7 +65,7 @@ <h3 class="text-truncate">
6565
{% if first_post.categories.size > 0 %}
6666
<span class="d-none d-md-inline post-meta mb-2">{{ first_post.categories[0] }} | </span>
6767
{% endif %}
68-
<span class="post-meta mb-2">{{ post.author }} | {{ post.date | date: date_format }}</span> | <a class="post-link comments" href="{{ post.url | absolute_url }}#discuss_thread">Comments</a>
68+
<span class="post-meta mb-2">{{ post.author }} | {{ post.date | date: date_format }}</span> | <a class="post-link comments" href="{{ post.url | absolute_url }}#discuss_thread" data-disqus-identifier="{{ post.url | absolute_url }}">Comments</a>
6969
</div>
7070
{%- if site.show_excerpts -%}
7171
<p>{{ post.excerpt | remove: '<p class="lead">' | remove: '</p>' }}</p>

_layouts/post.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1 class="post-title p-name fs-3" itemprop="name headline">{{ page.title | esca
1111
{% if page.categories.size > 0 %}
1212
<span class="d-none d-md-inline post-meta mb-2">{{ page.categories[0] }} | </span>
1313
{% endif %}
14-
<span class="post-meta mb-2">{{ page.author }} | {{ page.date | date: date_format }}</span> | <a class="post-link comments" href="{{ page.url | absolute_url }}#discuss_thread">Comments</a>
14+
<span class="post-meta mb-2">{{ page.author }} | {{ page.date | date: date_format }}</span> | <a class="post-link comments" href="{{ page.url | absolute_url }}#discuss_thread" data-disqus-identifier="{{ page.url | absolute_url }}">Comments</a>
1515
</div>
1616
</header>
1717

0 commit comments

Comments
 (0)