feat: добавил VK комментарии

This commit is contained in:
Astronit 2026-02-20 11:34:59 +00:00
parent c977afe167
commit 961d51fb37
2 changed files with 15 additions and 1 deletions

View File

@ -40,6 +40,8 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
giteaDefaultServer = "https://git.fsfe.org"
forgejoDefaultServer = "https://v11.next.forgejo.org"
showComments = true
[header]
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
@ -171,7 +173,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
# google = ""
# bing = ""
# pinterest = ""
yandex = "de1d55cab974c33e"
# yandex = ""
# fediverse = ""
[rssnext]

View File

@ -0,0 +1,12 @@
<!-- VK Comments Widget -->
<div id="vk_comments"></div>
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?169"></script>
<script type="text/javascript">
VK.init({apiId: 54459311, onlyWidgets: true});
VK.Widgets.Comments("vk_comments", {
limit: 10,
attach: "*",
autoPublish: 0,
pageUrl: "{{ .Permalink }}"
});
</script>