|
3 | 3 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
4 | 4 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
5 | 5 |
|
6 | | - <title>{% if page.use-site-title %}{{ site.title }}{% elsif page.title and page.subtitle %}{{ page.title }} {{ page.subtitle }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> |
| 6 | + <title> |
| 7 | + {% if page.use-site-title %} |
| 8 | + {{ site.title }} |
| 9 | + {% elsif page.title and page.subtitle %} |
| 10 | + {{ page.title }} {{ page.subtitle }} |
| 11 | + {% elsif page.title %} |
| 12 | + {{ page.title }} |
| 13 | + {% else %} |
| 14 | + {{ site.title }} |
| 15 | + {% endif %} |
| 16 | + </title> |
7 | 17 |
|
8 | 18 | <meta name="author" content="{{ site.author.name }}" /> |
9 | 19 |
|
10 | 20 | {% if page.subtitle %} |
11 | | - <meta name="description" content="{{ page.subtitle }}"> |
| 21 | + <meta name="description" content="{{ page.subtitle }}"> |
12 | 22 | {% endif %} |
13 | 23 |
|
14 | 24 | <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.baseurl }}/feed.xml" /> |
|
52 | 62 | {% endif %} |
53 | 63 |
|
54 | 64 | {% if page.meta-title %} |
55 | | - <meta property="og:title" content="{{ page.meta-title }}" /> |
| 65 | + <meta property="og:title" content="{{ page.meta-title }}" /> |
56 | 66 | {% elsif page.title %} |
57 | | - <meta property="og:title" content="{{ page.title }}" /> |
| 67 | + <meta property="og:title" content="{{ page.title }}" /> |
58 | 68 | {% else %} |
59 | | - <meta property="og:title" content="{{ site.title }}" /> |
| 69 | + <meta property="og:title" content="{{ site.title }}" /> |
60 | 70 | {% endif %} |
61 | 71 |
|
62 | | - {% if page.meta-description %} |
63 | | - <meta property="og:description" content="{{ page.meta-description }}"> |
| 72 | + {% if page.meta-description %} |
| 73 | + <meta property="og:description" content="{{ page.meta-description }}"> |
64 | 74 | {% elsif page.subtitle %} |
65 | | - <meta property="og:description" content="{{ page.subtitle }}"> |
| 75 | + <meta property="og:description" content="{{ page.subtitle }}"> |
66 | 76 | {% else %} |
67 | | - <meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> |
| 77 | + <meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> |
68 | 78 | {% endif %} |
69 | 79 |
|
70 | 80 |
|
71 | 81 | <meta property="og:type" content="website" /> |
72 | 82 |
|
73 | 83 | {% if page.id %} |
74 | | - <meta property="og:url" content="{{ site.url }}{{ page.url }}" /> |
75 | | - <link rel="canonical" href="{{ site.url }}{{ page.url }}" /> |
| 84 | + <meta property="og:url" content="{{ site.url }}{{ page.url }}" /> |
| 85 | + <link rel="canonical" href="{{ site.url }}{{ page.url }}" /> |
76 | 86 | {% else %} |
77 | | - <meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> |
78 | | - <link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> |
| 87 | + <meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> |
| 88 | + <link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> |
79 | 89 | {% endif %} |
80 | 90 |
|
81 | 91 | {% if page.share-img %} |
82 | | - <meta property="og:image" content="{{ page.share-img }}" /> |
| 92 | + <meta property="og:image" content="{{ page.share-img }}" /> |
83 | 93 | {% elsif site.avatar %} |
84 | | - <meta property="og:image" content="{{ site.url }}{{ site.avatar }}" /> |
| 94 | + <meta property="og:image" content="{{ site.url }}{{ site.avatar }}" /> |
85 | 95 | {% endif %} |
86 | 96 |
|
87 | 97 | <!-- Twitter summary cards --> |
|
90 | 100 | <meta name="twitter:creator" content="@{{ site.author.twitter }}" /> |
91 | 101 |
|
92 | 102 | {% if page.meta-title %} |
93 | | - <meta name="twitter:title" content="{{ page.meta-title }}" /> |
| 103 | + <meta name="twitter:title" content="{{ page.meta-title }}" /> |
94 | 104 | {% elsif page.title %} |
95 | | - <meta name="twitter:title" content="{{ page.title }}" /> |
| 105 | + <meta name="twitter:title" content="{{ page.title }}" /> |
96 | 106 | {% else %} |
97 | | - <meta name="twitter:title" content="{{ site.title }}" /> |
| 107 | + <meta name="twitter:title" content="{{ site.title }}" /> |
98 | 108 | {% endif %} |
99 | 109 |
|
100 | 110 | {% if page.meta-description %} |
101 | | - <meta name="twitter:description" content="{{ page.meta-description }}"> |
| 111 | + <meta name="twitter:description" content="{{ page.meta-description }}"> |
102 | 112 | {% elsif page.subtitle %} |
103 | | - <meta name="twitter:description" content="{{ page.subtitle }}"> |
| 113 | + <meta name="twitter:description" content="{{ page.subtitle }}"> |
104 | 114 | {% else %} |
105 | | - <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> |
| 115 | + <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> |
106 | 116 | {% endif %} |
107 | 117 |
|
108 | 118 | {% if page.share-img %} |
109 | | - <meta name="twitter:image" content="{{ page.share-img }}" /> |
| 119 | + <meta name="twitter:image" content="{{ page.share-img }}" /> |
110 | 120 | {% elsif site.avatar %} |
111 | | - <meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" /> |
| 121 | + <meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" /> |
112 | 122 | {% endif %} |
113 | 123 |
|
114 | 124 | {% if site.avatar %} |
115 | | - <link rel="icon" type="image/png" href="{{ site.avatar }}"> |
| 125 | + <link rel="icon" type="image/png" href="{{ site.avatar }}"> |
116 | 126 | {% endif %} |
117 | 127 |
|
118 | 128 | {% if site.google_adsense %} |
119 | | - {% include google_adsense.html %} |
| 129 | + {% include google_adsense.html %} |
120 | 130 | {% endif %} |
121 | 131 | </head> |
0 commit comments