Skip to content

Commit

Permalink
Merge pull request #409 from shaform/fix2
Browse files Browse the repository at this point in the history
Remove comment link if there are no comments
  • Loading branch information
xianmin authored Dec 25, 2024
2 parents 1e476cc + 3c4e0e6 commit 28a11d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/post/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@
<span class="post-meta-more">
{{ i18n "wordCount" .WordCount }} -
{{ i18n "readingTime" .ReadingTime }}
{{ if ne .Params.comment false }}
{{ if and .Site.Params.commentCount.disqus.enable .Site.GetPage.IsHome }}
- <a href="{{ .Permalink }}#disqus_thread">{{ i18n "comments" }}</a>
{{ end }}
{{- if .Site.Params.commentCount.remark42.enable }}
- <span class="remark42__counter" data-url="{{ .Permalink }}"></span> {{ i18n "comments" }}
{{ end }}
{{ end -}}
</span>
{{- end }}
Expand Down

0 comments on commit 28a11d7

Please sign in to comment.