Permalink
Browse files

added canonical url configuration for google search engine optimization.

  • Loading branch information...
1 parent a181b85 commit 4b9e5395c50b1efacef28374262a981889f834d8 adroullier committed Aug 17, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 pylons/layout.html
  2. +1 −0 pylons/theme.conf
  3. +1 −0 pyramid/theme.conf
View
@@ -9,6 +9,10 @@
{%- if theme_favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/'+theme_favicon, 1) }}"/>
{%- endif %}
+
+{%- if theme_canonical_url %}
+<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html"/>
+{%- endif %}
{% endblock %}
{% block header %}
View
@@ -12,3 +12,4 @@ in_progress = false
outdated = false
github_url =
latest_url =
+canonical_url =
View
@@ -8,3 +8,4 @@ in_progress = false
outdated = false
latest_url = http://docs.pylonsproject.org/projects/pyramid/en/latest/
github_url = https://github.com/Pylons/pyramid/
+canonical_url =

0 comments on commit 4b9e539

Please sign in to comment.