diff --git a/templates/base.html b/templates/base.html
index a43e612..9cef799 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -115,6 +115,19 @@
{% endif %}
+ {% if REL_CANONICAL %}
+ {% if page %}
+
+ {% elif article %}
+
+ {% elif page_name == 'index' and not articles_previous_page %}
+
+ {% elif author or category or tag or page_name == 'index' %}
+
+ {% else %}
+
+ {% endif %}
+ {% endif %}
{% block meta %}