Новый пост: telegram-comments
Build and deploy mmote.ru / Build-And-Deploy (push) Successful in 21s Details

This commit is contained in:
MultiMote 2024-04-26 22:56:02 +03:00
parent e6450565c0
commit 3ae5f963ca
6 changed files with 39 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,25 @@
---
title: Комментарии теперь в Telegram!
featured_image: miniature.png
date: 2024-04-26T18:51:54+03:00
draft: false
tags:
- telegram
- комментарии
- disqus
categories:
- news
lastmod: 2024-04-26T22:54:27+03:00
telegram_entry_id: mmotium/8
---
Исторически на сайте использовались комментарии [Disqus](https://disqus.com), но я решил попробовать перенести комментарии в мессенджер Telegram,
где все сейчас активно общаются.
Теперь получится быстрее отвечать на комментарии, да и в принципе вести диалоги там привычнее.
Со прошлыми комментариями подумаю что делать, постараюсь перенести. Пока что для старых постов оставлю Disqus.
<!--more-->
![comments](comments.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -25,7 +25,11 @@
</section>
<section class="comments">
{{ template "_internal/disqus.html" . }}
{{ if .Param "telegram_entry_id" }}
{{ partial "partials/telegram-comments" . }}
{{ else }}
{{ template "_internal/disqus.html" . }}
{{ end }}
</section>
</div>
{{ partial "sidebar.html" . }}

View File

@ -22,6 +22,9 @@
<p>
<a href="https://old.mmote.ru">Старый сайт</a>
</p>
<p>
<a href="https://t.me/mmotium">Telegram</a>
</p>
<p>
<!--commit-->
</p>

View File

@ -0,0 +1,6 @@
<script async
src="https://telegram.org/js/telegram-widget.js?22"
data-telegram-discussion="{{ .Param "telegram_entry_id" }}"
data-comments-limit="15"
data-color="404c5e"
data-colorful="1"></script>