|
1 | | -<!-- |
2 | | - The Head |
3 | | ---> |
| 1 | +<!-- The Head --> |
4 | 2 |
|
5 | 3 | <head> |
6 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
7 | | - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
| 5 | + <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f7f7f7"> |
| 6 | + <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1b1b1e"> |
| 7 | + <meta name="apple-mobile-web-app-capable" content="yes"> |
| 8 | + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> |
| 9 | + <meta |
| 10 | + name="viewport" |
| 11 | + content="width=device-width, user-scalable=no initial-scale=1, shrink-to-fit=no, viewport-fit=cover" |
| 12 | + > |
8 | 13 |
|
9 | 14 | {% if page.layout == 'home' or page.layout == 'post' %} |
10 | | - |
11 | 15 | {% if site.google_analytics.pv.proxy_endpoint %} |
12 | 16 | <meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}"> |
13 | 17 | {% endif %} |
14 | 18 |
|
15 | 19 | {% if site.google_analytics.pv.cache_path %} |
16 | 20 | <meta name="pv-cache-path" content="{{ site.google_analytics.pv.cache_path | relative_url }}"> |
17 | 21 | {% endif %} |
18 | | - |
19 | 22 | {% endif %} |
20 | 23 |
|
21 | 24 | {% capture seo_tags %} |
|
40 | 43 | {% endif %} |
41 | 44 |
|
42 | 45 | {% assign seo_tags = seo_tags | replace: target, replacement %} |
43 | | - |
44 | 46 | {% endunless %} |
45 | | - |
46 | 47 | {% endif %} |
47 | 48 |
|
48 | 49 | {{ seo_tags }} |
49 | 50 |
|
50 | 51 | <title> |
51 | | - {%- unless page.layout == "home" -%} |
52 | | - {{ page.title | append: " | "}} |
53 | | - {%- endunless -%} |
| 52 | + {%- unless page.layout == 'home' -%} |
| 53 | + {{ page.title | append: ' | ' }} |
| 54 | + {%- endunless -%} |
54 | 55 | {{ site.title }} |
55 | 56 | </title> |
56 | 57 |
|
57 | 58 | {% include favicons.html %} |
58 | 59 |
|
59 | 60 | {% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %} |
60 | | - |
61 | 61 | <link href="{{ site.data.assets[origin].webfonts | relative_url }}" rel="stylesheet"> |
62 | 62 |
|
63 | 63 | {% else %} |
64 | | - |
65 | 64 | {% for cdn in site.data.assets[origin].cdns %} |
66 | 65 | <link rel="preconnect" href="{{ cdn.url }}" {{ cdn.args }}> |
67 | 66 | <link rel="dns-prefetch" href="{{ cdn.url }}" {{ cdn.args }}> |
68 | 67 | {% endfor %} |
69 | 68 |
|
70 | 69 | <link rel="stylesheet" href="{{ site.data.assets[origin].webfonts | relative_url }}"> |
71 | | - |
72 | 70 | {% endif %} |
73 | 71 |
|
74 | 72 | <!-- GA --> |
75 | | - {% if jekyll.environment == 'production' |
76 | | - and site.google_analytics.id != empty and site.google_analytics.id %} |
| 73 | + {% if jekyll.environment == 'production' and site.google_analytics.id != empty and site.google_analytics.id %} |
77 | 74 | <link rel="preconnect" href="https://www.google-analytics.com" crossorigin="use-credentials"> |
78 | 75 | <link rel="dns-prefetch" href="https://www.google-analytics.com"> |
79 | 76 |
|
|
82 | 79 |
|
83 | 80 | {% if site.google_analytics.pv.proxy_endpoint %} |
84 | 81 | {% assign proxy_url = site.google_analytics.pv.proxy_endpoint |
85 | | - | replace: "https://", "" | split: "/" | first | prepend: "https://" %} |
| 82 | + | replace: 'https://', '' |
| 83 | + | split: '/' |
| 84 | + | first |
| 85 | + | prepend: 'https://' |
| 86 | + %} |
86 | 87 | <link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials"> |
87 | 88 | <link rel="dns-prefetch" href="{{ proxy_url }}"> |
88 | 89 | {% endif %} |
|
0 commit comments