From 3104729249c773d996b6826e80915b2d6c291194 Mon Sep 17 00:00:00 2001
From: Daniel Rudolf <github.com@daniel-rudolf.de>
Date: Sat, 4 Nov 2017 18:48:34 +0100
Subject: [PATCH] Add canonical link tag to index.twig

---
 index.twig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/index.twig b/index.twig
index 4197e13..2fce922 100644
--- a/index.twig
+++ b/index.twig
@@ -11,6 +11,10 @@
         <meta name="robots" content="{{ meta.robots }}" />
     {% endif %}
 
+    {% if current_page %}
+        <link rel="canonical" href="{{ current_page.url }}" />
+    {% endif %}
+
     <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700|Droid+Sans+Mono" type="text/css" />
     <link rel="stylesheet" href="{{ theme_url }}/style.css" type="text/css" />
     <link rel="stylesheet" href="{{ theme_url }}/fontello.css" type="text/css" />
-- 
GitLab