{{- /* You can add your own layouts/comments.html to override this file */ -}} {{- $pageCommentSystems := .Param "pageCommentSystems"}} {{- if not $pageCommentSystems }} {{- $pageCommentSystems = site.Params.defaultCommentSystems }} {{- end }} {{- $page := . -}} {{- with site.Params.commentSystems -}} {{- if $pageCommentSystems.remark42 -}} {{- with .remark42 -}} {{- partial "remark42.html" . }} {{- end -}} {{- end -}} {{- if $pageCommentSystems.telegramWidget -}} {{- with .telegramWidget -}} {{- partial "telegram_widget.html" . }} {{- end -}} {{- end -}} {{- if $pageCommentSystems.disqus -}} {{- with .disqus -}} {{- partial "disqus.html" (dict "page" $page "disqus" .) }} {{- end -}} {{- end -}} {{- end -}}