Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-24 16:49:13 +0300
committerGitHub <noreply@github.com>2022-05-24 16:49:13 +0300
commita73149864dae8ecb8acca5a6276d9e9ec8a1d037 (patch)
tree821d4cf26f21294bf193352e1a10f6301afab7da /layouts
parent47c607fdc764168929c167b17e8d4b9874e8e2f1 (diff)
parent96d2523bcc108bbd3c68dbf240355cbaf23557e9 (diff)
Merge pull request #433 from Matt-Esch/master
Inline telegram script
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/comment.html45
1 files changed, 23 insertions, 22 deletions
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
index 0358ca2d..f849740d 100644
--- a/layouts/partials/comment.html
+++ b/layouts/partials/comment.html
@@ -77,28 +77,29 @@
{{- /* Telegram Comments System */ -}}
{{- $telegram := $comment.telegram | default dict -}}
{{- if $telegram.enable -}}
- <div id="telegram-comments" class="comment"></div>
- {{- $attr := printf `data-comments-app-website="%v"` $telegram.siteID -}}
- {{- $attr = printf `%v data-limit="%v"` $attr ($telegram.limit | default 5) -}}
- {{- with $telegram.height -}}
- {{- $attr = printf `%v data-height="%v"` $attr . -}}
- {{- end -}}
- {{- with $telegram.color -}}
- {{- $attr = printf `%v data-color="%v"` $attr . -}}
- {{- end -}}
- {{- if $telegram.colorful -}}
- {{- $attr = printf `%v data-colorful="1"` $attr -}}
- {{- end -}}
- {{- if $telegram.dislikes -}}
- {{- $attr = printf `%v data-dislikes="1"` $attr -}}
- {{- end -}}
- {{- if $telegram.outlined -}}
- {{- $attr = printf `%v data-outlined="1"` $attr -}}
- {{- end -}}
- {{- dict "Source" "https://comments.app/js/widget.js?2" "Defer" true "Attr" $attr | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
- <noscript>
- Please enable JavaScript to view the comments powered by <a href="https://comments.app/">Telegram Comments</a>.
- </noscript>
+ <div id="telegram-comments" class="comment">
+ {{- $attr := printf `data-comments-app-website="%v"` $telegram.siteID -}}
+ {{- $attr = printf `%v data-limit="%v"` $attr ($telegram.limit | default 5) -}}
+ {{- with $telegram.height -}}
+ {{- $attr = printf `%v data-height="%v"` $attr . -}}
+ {{- end -}}
+ {{- with $telegram.color -}}
+ {{- $attr = printf `%v data-color="%v"` $attr . -}}
+ {{- end -}}
+ {{- if $telegram.colorful -}}
+ {{- $attr = printf `%v data-colorful="1"` $attr -}}
+ {{- end -}}
+ {{- if $telegram.dislikes -}}
+ {{- $attr = printf `%v data-dislikes="1"` $attr -}}
+ {{- end -}}
+ {{- if $telegram.outlined -}}
+ {{- $attr = printf `%v data-outlined="1"` $attr -}}
+ {{- end -}}
+ {{- dict "Source" "https://comments.app/js/widget.js?3" "Defer" true "Attr" $attr | partial "plugin/script.html" -}}
+ <noscript>
+ Please enable JavaScript to view the comments powered by <a href="https://comments.app/">Telegram Comments</a>.
+ </noscript>
+ </div>
{{- end -}}
{{- /* Commento Comment System */ -}}