Index: templates/default.tmpl |
=================================================================== |
--- a/templates/default.tmpl |
+++ b/templates/default.tmpl |
@@ -18,7 +18,11 @@ |
<script src="/js/jquery.js"></script> |
<script src="/js/scripts.js"></script> |
- <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}"> |
+ {% if page == "index" or page == "" %} |
+ <link rel="canonical" href="https://eyeo.com"> |
+ {% else %} |
+ <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}/"> |
Sebastian Noack
2015/12/18 17:42:46
This will add a redundant slash if the we didn't s
|
+ {% endif %} |
{% block head %} |
{{head|safe}} |