{{ $ctx := .ctx }} {{ $id := (string .id) }} {{ if (fileExists (print "data/post/" $id ".yaml")) }} {{ $d := (index .ctx.Site.Data.post $id) }}

{{$d.by}} {{$time := time (int $d.time)}} {{ $time }} [ - ]

{{ $d.text | safeHTML }}
{{ range $index, $childid := $d.kids }} {{ partial "comment" (dict "ctx" $ctx "id" $childid "parent" $id) }} {{ end }}
{{ else }} {{ end }}