{{ $slug := replace .RelPermalink "/" "" }} {{ if .Site.Data.comments }} {{ $comments := index $.Site.Data.comments $slug }} {{ if $comments }} {{ if gt (len $comments) 1 }}

{{ len $comments }} {{ i18n "moreComment" }}

{{ else }}

{{ len $comments }} {{ i18n "oneComment" }}

{{ end }} {{ else }}

{{ i18n "noComment" }}

{{ end }} {{ range $comments }} {{ if not .replyThread }} {{ $.Scratch.Set "threadID" ._id }}

{{ if .website -}} {{ .name }} {{ else -}} {{ .name }} {{- end }}

{{ .comment | markdownify }}

{{ i18n "replyToMsg" }}
{{ range $comments }} {{ if eq .replyThread ($.Scratch.Get "threadID") }}

{{ if .website -}} {{ .name }} {{ else -}} {{ .name }} {{- end }} {{ .replyName }}

{{ .comment | markdownify }}

{{ i18n "replyToMsg" }}
{{ end }} {{ end }} {{ end }} {{ end }} {{ end }}
{{- with .Site.Params.staticman.recaptcha -}} {{- end }}

{{ i18n "commentFormInfo" }} *.

{{ with .Site.Params.staticman.recaptcha -}}
{{- end }}