From 17256e7059752fc225236d2bf7fa0e3ee77ca671 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Thu, 19 Jul 2018 10:54:11 +0300 Subject: [PATCH] Simlify index template --- project/templates/blocks/calc_viewport.html | 12 +++ .../templates/blocks/facebook_pixel_code.html | 20 +++++ project/templates/blocks/ga.html | 9 +++ project/templates/blocks/yandex_metrika.html | 33 ++++++++ project/templates/lilcity/index.html | 77 ++----------------- 5 files changed, 82 insertions(+), 69 deletions(-) create mode 100644 project/templates/blocks/calc_viewport.html create mode 100644 project/templates/blocks/facebook_pixel_code.html create mode 100644 project/templates/blocks/ga.html create mode 100644 project/templates/blocks/yandex_metrika.html diff --git a/project/templates/blocks/calc_viewport.html b/project/templates/blocks/calc_viewport.html new file mode 100644 index 00000000..afb58876 --- /dev/null +++ b/project/templates/blocks/calc_viewport.html @@ -0,0 +1,12 @@ + diff --git a/project/templates/blocks/facebook_pixel_code.html b/project/templates/blocks/facebook_pixel_code.html new file mode 100644 index 00000000..9ef2e0e4 --- /dev/null +++ b/project/templates/blocks/facebook_pixel_code.html @@ -0,0 +1,20 @@ + + + + diff --git a/project/templates/blocks/ga.html b/project/templates/blocks/ga.html new file mode 100644 index 00000000..2ee7b520 --- /dev/null +++ b/project/templates/blocks/ga.html @@ -0,0 +1,9 @@ + + + diff --git a/project/templates/blocks/yandex_metrika.html b/project/templates/blocks/yandex_metrika.html new file mode 100644 index 00000000..8a9a7b48 --- /dev/null +++ b/project/templates/blocks/yandex_metrika.html @@ -0,0 +1,33 @@ + + + + diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 5d7b9d2d..7b8ecdd2 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -38,18 +38,9 @@ {% endcompress %} - + + {% include "templates/blocks/calc_viewport.html" %} + - - - - - - - - - - - + {% if not debug %} + {% include "templates/blocks/facebook_pixel_code.html" %} + {% include "templates/blocks/ga.html" %} + {% include "templates/blocks/yandex_metrika.html" %} {% include "templates/blocks/mixpanel.html" %} + {% endif %} {% include "templates/blocks/social.html" %}