{% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
<link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">
{% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %}
</head>
{% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
<link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">
{% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %}
</head>