Site title

This commit is contained in:
Valentin Popov 2018-04-11 03:00:52 +00:00
parent fc8d16771c
commit 07d814b663

View File

@ -1,39 +1,52 @@
<!-- Generate a header -->
{% if page.title %}
{% capture title %}
{{ page.title }} &middot; {{ site.title }}
{% endcapture %}
{% else %}
{% assign title = site.title %}
{% endif %}
<!-- Generate a description -->
{% if page.description %}
{% assign description = page.description %}
{% else %}
{% assign description = site.description %}
{% endif %}
<head> <head>
<!-- Meta tags --> <!-- Meta tags -->
<link rel="canonical" href="{{ site.url | absolute_url | uri_escape }}" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" /> <link rel="profile" href="http://gmpg.org/xfn/11" />
<title> <!-- Search engines -->
{% if page.id == "index" %} <link rel="canonical" href="{{ site.url | absolute_url | uri_escape }}" />
{{ site.title | smartify | strip_html | normalize_whitespace }} <meta name="google-site-verification" content="BkBsaYAO1LuQDRceyK2odvcpfuP2al0y04LnBda1uvE" />
{% else %} <meta name="yandex-verification" content="14221e61b87bbd27" />
{{ page.title | smartify | strip_html | normalize_whitespace }} &middot; <meta name="robots" content="index, follow" />
{{ site.title | smartify | strip_html | normalize_whitespace }}
{% endif %}
</title>
<!-- Font Awesome --> <!-- Title / Description -->
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.9/css/fontawesome.css" /> <meta name="description" content="{{ description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}" />
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.9/css/brands.css" /> <meta name="application-name" content="{{ title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}" />
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.9/css/solid.css" /> <title>{{ title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}</title>
<!-- Google Fonts --> <!-- Google Fonts -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Abril+Fatface" /> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto|Roboto+Mono" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans" />
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="{{ "/assets/css/poole.css" | relative_url | uri_escape }}" /> <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url | uri_escape }}" />
<link rel="stylesheet" href="{{ "/assets/css/syntax.css" | relative_url | uri_escape }}" /> <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url | uri_escape }}" />
<link rel="stylesheet" href="{{ "/assets/css/hyde.css" | relative_url | uri_escape }}" />
<!-- Favicon --> <!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/apple-touch-icon.png" | relative_url | uri_escape }}" /> <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="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 }}" /> <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url | uri_escape }}" />
<!-- RSS --> <!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | relative_url | uri_escape }}" /> <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | relative_url | uri_escape }}" />
<!-- JavaScript -->
<script type="text/javascript" src="{{ '/assets/javascript/anchor-js/anchor.min.js' | relative_url | uri_escape }}"></script>
</head> </head>