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