diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index 13813d790..f54c61701 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -143,7 +143,7 @@ {{- /* Telegram Comments System */ -}} {{- $telegram := $comment.telegram | default dict -}} {{- if $telegram.enable -}} -
+
{{- $attr := printf `data-comments-app-website="%v"` $telegram.siteID -}} {{- $attr = printf `%v data-limit="%v"` $attr ($telegram.limit | default 5) -}} {{- with $telegram.height -}} @@ -164,10 +164,11 @@ {{- if $telegram.dark -}} {{- $attr = printf `%v data-dark="1"` $attr -}} {{- end -}} - {{- dict "Source" "https://comments.app/js/widget.js?3" "Defer" true "Attr" $attr | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + +
{{- end -}} {{- /* Commento Comment System */ -}}