{% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
<link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">
{% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
<link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">