mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 00:33:39 +00:00
12 lines
389 B
HTML
12 lines
389 B
HTML
{{- .Page.Scratch.Add "comments_depth" 1 -}}
|
|
{{- $comments := ( index .Page.Site.Data.comments .Page.File.UniqueID ) -}}
|
|
{{- $parentId := .ParentId -}}
|
|
|
|
<ol class='children'>
|
|
{{- range $index, $comment := $comments -}}
|
|
{{- if ( eq $comment.parent_id $parentId ) -}}
|
|
{{ partial "comments/staticman/comment" ( dict "Comment" $comment "Page" $.Page ) }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</ol>
|