From 87d2c0310649cce5794f40bc36150c1024cd9d83 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Thu, 18 Apr 2024 13:26:28 +0300 Subject: [PATCH] set page title and metadata according to SEO spec --- src/view/about.twig | 2 +- src/view/base-template.twig | 8 ++++++-- src/view/concept.twig | 2 +- src/view/error.twig | 2 +- src/view/feedback.twig | 2 +- src/view/vocab-home.twig | 2 +- src/view/vocab-search.twig | 2 +- 7 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/view/about.twig b/src/view/about.twig index 2b905aee0..7aa7fe4fc 100644 --- a/src/view/about.twig +++ b/src/view/about.twig @@ -1,6 +1,6 @@ {% set pageType = 'about' %} {% extends "base-template.twig" %} -{% block title %}: "About"{% endblock %} +{% block title %}{{ "About" | trans}} - {{ GlobalConfig.serviceName }}{% endblock %} {% block content %}
diff --git a/src/view/base-template.twig b/src/view/base-template.twig index 4ab34bcc7..38d5834c3 100644 --- a/src/view/base-template.twig +++ b/src/view/base-template.twig @@ -3,11 +3,16 @@ +{% block title %}{{ GlobalConfig.serviceName }}{% endblock %} - + + + + + @@ -18,7 +23,6 @@ {% endif %} {% for plugin, files in request.plugins.pluginsCSS %}{% for file in files %}{% endfor %}{% endfor %} -{{ GlobalConfig.serviceName }}{% block title %}{% endblock %}