blog.b4tman.ru/layouts/partials/footer_custom.html

26 lines
1.6 KiB
HTML
Raw Normal View History

2019-08-13 16:38:42 +00:00
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }}
{{ if or (eq (substr .RelPermalink 0 6) "/post/") (eq (substr .RelPermalink 0 6) "/page/") }}
2019-08-13 16:24:53 +00:00
<script type="text/javascript">
var remark_config = {
host: "https://remark.b4tman.ru",
site_id: 'blog.b4tman.ru',
components: ['embed'],
max_shown_comments: 15,
2021-04-08 13:30:46 +00:00
locale: 'ru',
2019-08-13 16:24:53 +00:00
theme: 'light'
};
(function(c) {
for(var i = 0; i < c.length; i++){
var d = document, s = d.createElement('script');
s.src = remark_config.host + '/web/' +c[i] +'.js';
s.defer = true;
(d.head || d.body).appendChild(s);
}
})(remark_config.components || ['embed']);
</script>
{{ end }}
2019-08-13 16:38:42 +00:00
{{ end }}
2019-08-13 16:24:53 +00:00
2021-04-08 13:30:46 +00:00
<!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter48214757 = new Ya.Metrika2({ id:48214757, clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true, ut:"noindex" }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/tag.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks2"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/48214757?ut=noindex" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->