Use no .html

This commit is contained in:
Rico Sta. Cruz 2017-08-28 21:51:48 +08:00
parent 5bdc34c20a
commit 8754fb87f3
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@
{%comment%}<!-- canonical URL -->{%endcomment%}
{% if page.url != '/index.html' %}
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
<link rel="canonical" href="{{ site.url }}{{ page.url | remove: '.html' }}">
<meta name="og:url" content="{{ site.url }}{{ page.url | remove: '.html' }}">
<link rel="prefetch" href="{{ site.url }}">
<link rel="prerender" href="{{ site.url }}">
{% endif %}