From c557b3458992ebd194b2dca6c2ba2902ac61b54b Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Fri, 28 Jun 2019 14:11:08 +0200 Subject: [PATCH] added seo improvements --- src/project/templates/main.html | 2 +- src/project/templates/project/includes/content_intro.html | 4 ++-- src/project/templates/project/includes/main_menu.html | 2 +- src/project/templates/project/includes/page_item.html | 4 ++-- .../project/plugins/content/download_section.html | 3 ++- .../templates/project/plugins/content/gallery.html | 8 ++++---- .../templates/project/plugins/content/intro_image.html | 4 ++-- .../templates/project/plugins/content/partner.html | 4 ++-- src/project/templates/project/plugins/content/quote.html | 4 ++-- .../project/plugins/content/reference_list_item.html | 4 ++-- src/project/templates/project/plugins/content/slider.html | 4 ++-- src/project/templates/project/plugins/content/video.html | 4 ++-- .../templates/project/plugins/timetable/timetable.html | 4 ++-- .../project/plugins/timetable/timetable_item.html | 4 ++-- src/project/templatetags/util_tags.py | 8 ++++++++ src/project/urls.py | 3 ++- src/project/views.py | 6 ++++++ 17 files changed, 44 insertions(+), 28 deletions(-) diff --git a/src/project/templates/main.html b/src/project/templates/main.html index c0427d5..b232884 100644 --- a/src/project/templates/main.html +++ b/src/project/templates/main.html @@ -6,7 +6,7 @@ {% block title %}{% page_attribute page_title %}{% endblock %} | Tagesschule Elementa Zug {% page_attribute 'meta_description' as meta_desc %} {% trans 'Stärken stärken. Lernen lernen. Die Schweizer Primarschule mit einem internationalen Touch. Die Elementa - Einzigartig wie Ihr Kind.' as def_meta_desc %} - +{# #} diff --git a/src/project/templates/project/includes/content_intro.html b/src/project/templates/project/includes/content_intro.html index e4f46bd..d4c8415 100644 --- a/src/project/templates/project/includes/content_intro.html +++ b/src/project/templates/project/includes/content_intro.html @@ -1,4 +1,4 @@ -{% load i18n cms_tags menu_tags thumbnail %} +{% load i18n cms_tags menu_tags thumbnail util_tags %}
@@ -14,6 +14,6 @@ {% if image %} {% thumbnail image 1600x800 box=cropping crop detail as thumb %}
+ style="background-image: url({{ thumb.url|media_bridge }})">
{% endif %}
\ No newline at end of file diff --git a/src/project/templates/project/includes/main_menu.html b/src/project/templates/project/includes/main_menu.html index 90a4c51..9ed4cfe 100644 --- a/src/project/templates/project/includes/main_menu.html +++ b/src/project/templates/project/includes/main_menu.html @@ -10,7 +10,7 @@ {% else %} diff --git a/src/project/templates/project/includes/page_item.html b/src/project/templates/project/includes/page_item.html index 626003a..9760598 100644 --- a/src/project/templates/project/includes/page_item.html +++ b/src/project/templates/project/includes/page_item.html @@ -1,4 +1,4 @@ -{% load i18n highlight thumbnail cms_tags %} +{% load i18n highlight thumbnail cms_tags util_tags %} {% if not search and not title and not text %} {% page_attribute 'page_title' page as title %} @@ -12,7 +12,7 @@ {% if image %} {% thumbnail image 1000x600 box=cropping crop detail as thumb %}
+ style="background-image: url({{ thumb.url|media_bridge }})"> {% endif %} {% if search %}{{ page.title }}{% else %}{{ title }}{% endif %} diff --git a/src/project/templates/project/plugins/content/download_section.html b/src/project/templates/project/plugins/content/download_section.html index 321cc0d..5e250bd 100644 --- a/src/project/templates/project/plugins/content/download_section.html +++ b/src/project/templates/project/plugins/content/download_section.html @@ -1,7 +1,8 @@ +{% load util_tags %}