|
1 | 1 | <head>
|
2 |
| - <meta charset="utf-8"> |
3 |
| - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
4 |
| - <meta name="viewport" content="width=device-width, initial-scale=1"> |
5 |
| - <meta http-equiv="expires" content = "-1" /> |
| 2 | + <meta charset="utf-8" /> |
| 3 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 4 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 5 | + <meta http-equiv="expires" content="-1" /> |
6 | 6 | <meta http-equiv="cache-control" content="public" />
|
7 |
| - <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> |
| 7 | + <link |
| 8 | + rel="canonical" |
| 9 | + href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" |
| 10 | + /> |
8 | 11 |
|
9 | 12 | <!-- Twitter -->
|
10 |
| - <meta name="twitter:card" content="summary_large_image"> |
11 |
| - <meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> |
12 |
| - <meta name="twitter:description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 13 | + <meta name="twitter:card" content="summary_large_image" /> |
| 14 | + <meta |
| 15 | + name="twitter:title" |
| 16 | + content="{% if page.title %}{{ page.title }}{% else %}{{ |
| 17 | + site.title |
| 18 | + }}{% endif %}" |
| 19 | + /> |
| 20 | + <meta |
| 21 | + name="twitter:description" |
| 22 | + content="{% if page.desc %}{{ |
| 23 | + page.desc | strip_html | strip_newlines | truncate: 160 |
| 24 | + }}{% else %}{{ site.description }}{% endif %}" |
| 25 | + /> |
13 | 26 | {% if page.image %}
|
14 |
| - <meta property="twitter:image:src" content="{{ site.url }}/assets/img/{{ page.image }}"> |
15 |
| - {% else %} |
16 |
| - <meta property="twitter:image:src" content="{{ "/assets/img/new-banner.png" | prepend: site.url }}"> |
17 |
| - {% endif %} |
| 27 | + <meta |
| 28 | + property="twitter:image:src" |
| 29 | + content="{{ site.url }}/assets/img/{{ page.image }}" |
| 30 | + /> |
| 31 | + {% else %} <meta property="twitter:image:src" content="{{ |
| 32 | + "/assets/img/new-banner.png" | prepend: site.url |
| 33 | + }}"> {% endif %} |
18 | 34 |
|
19 | 35 | <!-- Facebook -->
|
20 |
| - <meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> |
21 |
| - <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> |
22 |
| - <meta property="og:description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
23 |
| - <meta property="og:site_name" content="{{ site.title }}"> |
24 |
| - <meta property="og:image" content="{{ "/assets/img/new-banner.png" | prepend: site.url }}"> |
25 |
| - <link rel="shortcut icon" href="{{ "/assets/img/favicon.ico" | prepend: site.url }}" /> |
| 36 | + <meta |
| 37 | + property="og:url" |
| 38 | + content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" |
| 39 | + /> |
| 40 | + <meta |
| 41 | + property="og:title" |
| 42 | + content="{% if page.title %}{{ page.title }}{% else %}{{ |
| 43 | + site.title |
| 44 | + }}{% endif %}" |
| 45 | + /> |
| 46 | + <meta |
| 47 | + property="og:description" |
| 48 | + content="{% if page.desc %}{{ |
| 49 | + page.desc | strip_html | strip_newlines | truncate: 160 |
| 50 | + }}{% else %}{{ site.description }}{% endif %}" |
| 51 | + /> |
| 52 | + <meta property="og:site_name" content="{{ site.title }}" /> |
26 | 53 |
|
27 |
| - <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> |
28 |
| - <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 54 | + {% if page.image %} |
| 55 | + <meta |
| 56 | + property="og:image" |
| 57 | + content="{{ site.url }}/assets/img/{{ page.image }}" |
| 58 | + /> |
| 59 | + {% else %} <meta property="og:image" content="{{ |
| 60 | + "/assets/img/new-banner.png" | prepend: site.url |
| 61 | + }}"> {% endif %} <link rel="shortcut icon" href="{{ |
| 62 | + "/assets/img/favicon.ico" | prepend: site.url |
| 63 | + }}" /> |
| 64 | + |
| 65 | + <title> |
| 66 | + {% if page.title %}{{ page.title | escape }}{% else %}{{ |
| 67 | + site.title | escape |
| 68 | + }}{% endif %} |
| 69 | + </title> |
| 70 | + <meta |
| 71 | + name="description" |
| 72 | + content="{% if page.excerpt %}{{ |
| 73 | + page.excerpt | strip_html | strip_newlines | truncate: 160 |
| 74 | + }}{% else %}{{ site.description }}{% endif %}" |
| 75 | + /> |
29 | 76 |
|
30 |
| - <meta itemprop="name" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"/> |
31 |
| - <meta itemprop="description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 77 | + <meta |
| 78 | + itemprop="name" |
| 79 | + content="{% if page.title %}{{ page.title }}{% else %}{{ |
| 80 | + site.title |
| 81 | + }}{% endif %}" |
| 82 | + /> |
| 83 | + <meta |
| 84 | + itemprop="description" |
| 85 | + content="{% if page.desc %}{{ |
| 86 | + page.desc | strip_html | strip_newlines | truncate: 160 |
| 87 | + }}{% else %}{{ site.description }}{% endif %}" |
| 88 | + /> |
32 | 89 |
|
33 |
| - <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> |
34 |
| - <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> |
| 90 | + <link |
| 91 | + rel="canonical" |
| 92 | + href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" |
| 93 | + /> |
| 94 | + <link rel="alternate" type="application/rss+xml" title="{{ |
| 95 | + site.title |
| 96 | + }}" href="{{ |
| 97 | + "/feed.xml" | prepend: site.baseurl | prepend: site.url |
| 98 | + }}"> |
35 | 99 | </head>
|
0 commit comments