add canonical https urls for search engines

This commit is contained in:
Anton Keks 2018-06-28 00:03:42 +03:00
parent 6eee84476a
commit 6a1c6f0372

View File

@ -1,9 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<script>if (location.href.indexOf('http:') === 0) location.href = location.href.replace('http:', 'https:')</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="canonical" href="{{ site.url }}{{ page.url | remove:'index.html' }}">
<script>if (location.href.indexOf('http:') === 0) location.href = location.href.replace('http:', 'https:')</script>
{%if page.keywords != null%}<meta name="keywords" content="{{ page.keywords }}">{%endif%}
{%if page.description != null%}<meta name="description" content="{{ page.description }}">{%endif%}
<title>{{ site.name }} - {{ page.title }}</title>