From aecd708bb52cae4b6bd651517991848f4c4ca102 Mon Sep 17 00:00:00 2001 From: Astronit Date: Sat, 1 Aug 2026 11:47:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=BB=D0=B0=D0=B2=D0=B0=D1=8E=D1=89=D0=B8?= =?UTF-8?q?=D0=B9=20=D0=B2=D0=B8=D0=B4=D0=B6=D0=B5=D1=82=20=D0=BE=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B0=20(=D1=82=D1=80=D0=B8=D0=B3=D0=B3?= =?UTF-8?q?=D0=B5=D1=80=20+=20=D0=BC=D0=BE=D0=B4=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=BE,=20=D0=B2=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B8=D1=82=D1=8C=20=D0=AF=D0=BD=D0=B4=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=20=D0=A4=D0=BE=D1=80=D0=BC=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/extend-footer.html | 72 +++++++++++++++++++++++++++ layouts/partials/extend-head.html | 76 +++++++++++++++++++++++++++-- 2 files changed, 145 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/extend-footer.html diff --git a/layouts/partials/extend-footer.html b/layouts/partials/extend-footer.html new file mode 100644 index 0000000..c3469f8 --- /dev/null +++ b/layouts/partials/extend-footer.html @@ -0,0 +1,72 @@ +{{ $coffeeOn := site.Params.buymeacoffee.globalWidget | default false }} +{{ $coffeePos := lower (site.Params.buymeacoffee.globalWidgetPosition | default "right") }} +{{ $coffeeOnRight := and $coffeeOn (eq $coffeePos "right") }} +{{ $scrollTopOn := site.Params.footer.showScrollToTop | default true }} + +{{ $side := "right" }} +{{ $bottomPx := 24 }} +{{ if $coffeeOnRight }} + {{ $side = "left" }} +{{ else if $scrollTopOn }} + {{ $bottomPx = 90 }} +{{ end }} + + + + + + + + diff --git a/layouts/partials/extend-head.html b/layouts/partials/extend-head.html index afba6de..3eebcac 100644 --- a/layouts/partials/extend-head.html +++ b/layouts/partials/extend-head.html @@ -6,12 +6,82 @@ for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a) })(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=106995329', 'ym'); - ym(106995329, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true}); - - \ No newline at end of file + + + \ No newline at end of file