{{- $entryId := .File.UniqueID -}} {{- if isset .Site.Data.comments $entryId -}} {{- $comments := ( index .Site.Data.comments $entryId ) -}}

{{ i18n "commentsOnEntry" ( dict "Count" ( len $comments ) "Title" .Title ) }}

    {{- range $index, $comment := $comments -}} {{- $.Scratch.Set "comments_depth" 1 -}} {{- if not $comment.parent_id -}} {{ partial "comments/staticman/comment" ( dict "Comment" $comment "Page" $ ) }} {{- end -}} {{- end -}}
{{- end -}}