diff --git a/templates/base.html b/templates/base.html
index 10c5400..9c1f3a2 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 %}