aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-03 22:10:32 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-03 22:10:32 +0300
commit23a8b443360dc12ea1c8da8882fbed12cc380f69 (patch)
tree30facf053d32e4ede5508aa5c2bff2bb7cf730fb
parente72a0df7f5fb69012b7ca7ee4dd9048de5dfdeb1 (diff)
downloadpopov.link-23a8b443360dc12ea1c8da8882fbed12cc380f69.tar.xz
popov.link-23a8b443360dc12ea1c8da8882fbed12cc380f69.zip
Weak places of the header have been worked out
Signed-off-by: Valentin Popov <valentineus@gmail.com>
-rw-r--r--_includes/head.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/_includes/head.html b/_includes/head.html
index d43c770..3354d17 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -1,6 +1,6 @@
<head>
<!-- Meta tags -->
- <link rel="canonical" href="{{ site.url | absolute_url }}" />
+ <link rel="canonical" href="{{ site.url | absolute_url | uri_escape }}" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@@ -8,9 +8,10 @@
<title>
{% if page.title == "index" %}
- {{ site.title }}
+ {{ site.title | smartify | strip_html | strip | normalize_whitespace }}
{% else %}
- {{ page.title }} &middot; {{ site.title }}
+ {{ page.title | smartify | strip_html | strip | normalize_whitespace }} &middot;
+ {{ site.title | smartify | strip_html | strip | normalize_whitespace }}
{% endif %}
</title>
@@ -24,15 +25,15 @@
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans" />
<!-- CSS -->
- <link rel="stylesheet" href="{{ "/assets/css/poole.css" | relative_url }}" />
- <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | relative_url }}" />
- <link rel="stylesheet" href="{{ "/assets/css/hyde.css" | relative_url }}" />
+ <link rel="stylesheet" href="{{ "/assets/css/poole.css" | relative_url | uri_escape }}" />
+ <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | relative_url | uri_escape }}" />
+ <link rel="stylesheet" href="{{ "/assets/css/hyde.css" | relative_url | uri_escape }}" />
<!-- Favicon -->
- <link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/apple-touch-icon.png" | relative_url }}" />
- <link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicon-16x16.png" | relative_url }}" />
- <link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicon-32x32.png" | relative_url }}" />
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/apple-touch-icon.png" | relative_url | uri_escape }}" />
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicon-16x16.png" | relative_url | uri_escape }}" />
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicon-32x32.png" | relative_url | uri_escape }}" />
<!-- RSS -->
- <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | relative_url }}" />
+ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | relative_url | uri_escape }}" />
</head>