Proper handling of canonical URLs (#52)

* add canonical_url block to base.html, change canonical url for pages

* Avoid nesting block within block

That leads to repeating the block twice instead of replacing its value
from `base.html`
This commit is contained in:
Vitaly Potyarkin 2019-08-31 11:32:27 +03:00 committed by Arul
parent c7698d2b31
commit 73e216f522
3 changed files with 6 additions and 2 deletions

View file

@ -27,10 +27,10 @@
{% set selected_color = HEADER_COLOR %}
{% endif %}
{% block canonical_url %}<link href="{{ SITEURL }}/{{ article.url }}" rel="canonical" />{% endblock canonical_url %}
{% block head %}
{{ super() }}
<link href="{{ SITEURL }}/{{ article.url }}" rel="canonical" />
{% for keyword in article.keywords %}
<meta name="keywords" content="{{keyword}}" >
{% endfor %}