mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 00:33:39 +00:00
20 lines
549 B
HTML
20 lines
549 B
HTML
{{- $entryId := .File.UniqueID -}}
|
|
|
|
{{- if isset .Site.Data.comments $entryId -}}
|
|
|
|
{{- $comments := ( index .Site.Data.comments $entryId ) -}}
|
|
<h3 class='comments-title'>
|
|
{{ i18n "commentsOnEntry" ( dict "Count" ( len $comments ) "Title" .Title ) }}
|
|
</h3>
|
|
|
|
<ol class='comment-list'>
|
|
{{- range $index, $comment := $comments -}}
|
|
{{- $.Scratch.Set "comments_depth" 1 -}}
|
|
{{- if not $comment.parent_id -}}
|
|
{{ partial "comments/staticman/comment" ( dict "Comment" $comment "Page" $ ) }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</ol>
|
|
|
|
{{- end -}}
|