Add option to output canonical URL
Canonical links are handy to tell search engines which page is canonical amongst various permutations of URLs (e.g. https vs. http and www subdomain or not). Add an option to output one via the following pelicanconf.py setting: REL_CANONICAL = True
This commit is contained in:
parent
0f0ea7e824
commit
4d2a9f81e6
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@
|
||||||
<meta name="msapplication-TileColor" content="{{ BROWSER_COLOR }}">
|
<meta name="msapplication-TileColor" content="{{ BROWSER_COLOR }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if REL_CANONICAL %}
|
||||||
|
<link rel="canonical" href="{{ SITEURL }}/{{ output_file }}">
|
||||||
|
{% endif %}
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
<meta name="author" content="{{ AUTHOR }}" />
|
<meta name="author" content="{{ AUTHOR }}" />
|
||||||
<meta name="description" content="{{ SITEDESCRIPTION }}" />
|
<meta name="description" content="{{ SITEDESCRIPTION }}" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue