Skip to content

Commit

Permalink
removes index.html from canonical urls. closes imathis#153
Browse files Browse the repository at this point in the history
  • Loading branch information
imathis committed Sep 17, 2011
1 parent 48cd279 commit 728bdad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .themes/classic/source/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
{% if page.keywords %}
<meta name="keywords" content="{{page.keywords}}"/>
{% endif %}

<link rel="canonical" href="{{ site.url }}{{ page.url }}"/>
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<link href="{{ root_url }}/favicon.png" rel="shortcut icon" />
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
Expand Down

0 comments on commit 728bdad

Please sign in to comment.