blob: c7fae9d91799e386e434a727a4341b3d03c10166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{{- /* 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" (dict "page" $page "ctx" .) }}
{{- end -}}
{{- end -}}
{{- if $pageCommentSystems.telegramWidget -}}
{{- with .telegramWidget -}}
{{- partial "telegram_widget.html" . }}
{{- end -}}
{{- end -}}
{{- if $pageCommentSystems.disqus -}}
{{- with .disqus -}}
{{- partial "disqus.html" (dict "page" $page "ctx" .) }}
{{- end -}}
{{- end -}}
{{- end -}}
|