From 016fe9fdb38d6002e1e0d50555d0610246da1b4f Mon Sep 17 00:00:00 2001 From: Daniil Krymov <1140778+geeqla@users.noreply.github.com> Date: Fri, 20 Jan 2023 21:04:35 +0100 Subject: [PATCH] Add Yandex.Metrika counter --- layouts/partials/head.html | 1 + layouts/partials/templates/yandex_metrika.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 layouts/partials/templates/yandex_metrika.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35257fc7..7702baa8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -164,6 +164,7 @@ {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- template "_internal/google_analytics.html" . }} +{{- template "partials/templates/yandex_metrika.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} {{- template "partials/templates/schema_json.html" . }} diff --git a/layouts/partials/templates/yandex_metrika.html b/layouts/partials/templates/yandex_metrika.html new file mode 100644 index 00000000..488a997c --- /dev/null +++ b/layouts/partials/templates/yandex_metrika.html @@ -0,0 +1,16 @@ +{{- if site.Params.yandexMetrika }} + + +{{- end -}} \ No newline at end of file