Comments

{{- $entryId := md5 .File.Path -}} {{ if .Site.Data.comments }} {{- $comments := index $.Site.Data.comments $entryId -}} {{ if not $comments }}

{{ i18n "noComment" }}

{{ else }} {{ range $comments }} {{ if not .replyThread }} {{ $.Scratch.Set "threadID" ._id }}
user icon
{{ .name }}

{{ .comment | markdownify }}

{{ range $comments }} {{ if eq .replyThread ($.Scratch.Get "threadID") }}
user icon
{{ .name }} ↷ {{ .replyName }}

{{ .comment | markdownify }}

{{- end }} {{- end }} {{- end }} {{- end }} {{- end }} {{- end }} {{- partial "comments-form" . }}