2022-05-27 14:33:40 +01:00
|
|
|
{{- /* You can add your own layouts/comments.html to override this file */ -}}
|
|
|
|
|
2022-05-31 15:41:10 +01:00
|
|
|
{{- $pageCommentSystems := .Param "pageCommentSystems"}}
|
|
|
|
{{- if not $pageCommentSystems }}
|
|
|
|
{{- $pageCommentSystems = site.Params.defaultCommentSystems }}
|
|
|
|
{{- end }}
|
2022-05-27 14:33:40 +01:00
|
|
|
|
2022-05-31 15:41:10 +01:00
|
|
|
{{- $page := . -}}
|
|
|
|
{{- with site.Params.commentSystems -}}
|
|
|
|
{{- if $pageCommentSystems.remark42 -}}
|
|
|
|
{{- with .remark42 -}}
|
2022-06-01 15:03:01 +01:00
|
|
|
{{- partial "remark42.html" (dict "page" $page "ctx" .) }}
|
2022-05-31 15:41:10 +01:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- if $pageCommentSystems.telegramWidget -}}
|
|
|
|
{{- with .telegramWidget -}}
|
|
|
|
{{- partial "telegram_widget.html" . }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2022-05-30 17:24:54 +01:00
|
|
|
|
2022-05-31 15:41:10 +01:00
|
|
|
{{- if $pageCommentSystems.disqus -}}
|
|
|
|
{{- with .disqus -}}
|
2022-06-01 15:03:01 +01:00
|
|
|
{{- partial "disqus.html" (dict "page" $page "ctx" .) }}
|
2022-05-31 15:41:10 +01:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2022-05-30 17:24:54 +01:00
|
|
|
{{- end -}}
|