Index: templates/default.tmpl |
=================================================================== |
--- a/templates/default.tmpl |
+++ b/templates/default.tmpl |
@@ -18,7 +18,7 @@ |
<script src="/js/jquery.js"></script> |
<script src="/js/scripts.js"></script> |
- <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}"> |
+ <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.endswith('index') else page }}"> |
Sebastian Noack
2015/12/18 18:01:37
Argh, sorry. I just realized that this will break
|
{% block head %} |
{{head|safe}} |