From 3e0600372de80e7e10717b6d4d75049a743b6280 Mon Sep 17 00:00:00 2001 From: kovalch Date: Tue, 12 Nov 2024 10:59:17 +0100 Subject: [PATCH] feat: Redirect from the head with meta http-equiv --- theme/templates/base.html | 6 ++---- theme/templates/index.html | 9 +-------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/theme/templates/base.html b/theme/templates/base.html index 3087029..6656c50 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -94,10 +94,8 @@ title="{{ SITENAME }} {{ category }} ATOM Feed"/> {% endif %} - {% if SITEURL == "https://opendata-swiss.github.io/ogd-handbook-site/en/library/ch-dcat-ap.html" %} - + {% if SITEURL == "//opendata-swiss.github.io/ogd-handbook-site/en/library/ch-dcat-ap.html" %} + {% endif %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 1d49191..71dce96 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -1,13 +1,6 @@ {% extends "article_list.html" %} -{% block canonical_rel %} - - {% if SITEURL == "https://opendata-swiss.github.io/ogd-handbook-site/en/library/ch-dcat-ap.html" %} - - {% endif %} -{% endblock %} +{% block canonical_rel %}{% endblock %} {% block banner %} {% include 'includes/banner.html' %}