diff --git a/static/js/dynamic_loading_routes.js b/static/js/dynamic_loading_routes.js index 718fb8b..cb6e8cf 100644 --- a/static/js/dynamic_loading_routes.js +++ b/static/js/dynamic_loading_routes.js @@ -177,7 +177,7 @@ function load_routes (el,news=null,incrase,owner_type) { } let first_block_iteration = document.querySelector(`.page_paging_elements_${paging_iterator}`) let insert_place = null - if (first_block_iteration.innerHTML){ + if (first_block_iteration && first_block_iteration.innerHTML){ paging_iterator++ let new_page_paging_elements = document.createElement('div') new_page_paging_elements.classList.add(`page_paging_elements_${paging_iterator}`) diff --git a/templates/inter/meta_OpenGraph.html b/templates/inter/meta_OpenGraph.html deleted file mode 100644 index d1aedc5..0000000 --- a/templates/inter/meta_OpenGraph.html +++ /dev/null @@ -1,42 +0,0 @@ - -{% if page.url == 'main' %} - - - -{% endif %} - - - - - -{% if page.url == 'about_service' and page.url == 'ru' %} - - - - - - - - - - - - -{% endif %} - -{% if page.url == 'about_service' and page.url == 'en' %} - - - - - - - - - - - - - - -{% endif %} \ No newline at end of file diff --git a/templates/inter/meta_OpenGraph_Schema.html b/templates/inter/meta_OpenGraph_Schema.html new file mode 100644 index 0000000..d668124 --- /dev/null +++ b/templates/inter/meta_OpenGraph_Schema.html @@ -0,0 +1,1018 @@ + +{% if page.url == 'main' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'main' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + +{% endif %} + + + +{% if page_name == 'create_route_for_mover' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page_name == 'create_route_for_mover' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + + + +{% endif %} + + + + +{% if page_name == 'create_route_for_customer' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page_name == 'create_route_for_customer' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'for_customers' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + +{% endif %} + + +{% if page.url == 'for_customers' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'for_movers' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'for_movers' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'about_service' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + + +{% if page.url == 'about_service' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if articles and request.LANGUAGE_CODE == 'ru' and not page.url == 'main' %} + + + + + + + + + + + + + + + + + + + + +{% endif %} + + +{% if articles and request.LANGUAGE_CODE == 'en' and not page.url == 'main' %} + + + + + + + + + + + + + + + + + + +{% endif %} + + +{% if page.url == 'partners' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'partners' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + +{% endif %} + + +{% if page.url == 'advertisement' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'advertisement' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'customer_service' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'customer_service' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'contacts' and request.LANGUAGE_CODE == 'ru' %} + + + + + + + + + + + + + + + + + +{% endif %} + +{% if page.url == 'contacts' and request.LANGUAGE_CODE == 'en' %} + + + + + + + + + + + + + + + + + +{% endif %} \ No newline at end of file diff --git a/templates/tb_base.html b/templates/tb_base.html index 8aacbdf..73ae945 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -18,7 +18,7 @@ - {% include "inter/meta_OpenGraph.html" %} + {% include "inter/meta_OpenGraph_Schema.html" %}