|
2 | 2 | <title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title> |
3 | 3 | <meta name="description" content="{{ page.description }}"> |
4 | 4 | <meta name="keywords" content="{{ page.tags | join: ', ' }}"> |
5 | | -<!-- Twitter Card and Open Graph meta --> |
| 5 | +{% if site.owner.twitter %}<!-- Twitter Card and Open Graph meta --> |
6 | 6 | <meta name="twitter:title" content="{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}"> |
7 | 7 | <meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}"> |
8 | 8 | <meta name="twitter:creator" content="@{{ site.owner.twitter }}"> |
|
11 | 11 | {% if page.image %}<meta name="twitter:image:src" content="{{ site.url }}/images/{{ page.image.feature }}">{% endif %} |
12 | 12 | {% else %} |
13 | 13 | <meta name="twitter:card" content="summary"> |
14 | | -<meta name="twitter:image:src" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}"> |
| 14 | +<meta name="twitter:image:src" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}">{% endif %} |
15 | 15 | <meta property="og:type" content="article"> |
16 | 16 | <meta property="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}"> |
17 | 17 | {% endif %} |
|
21 | 21 | <meta property="og:url" content="{{ site.url }}{{ page.url }}"> |
22 | 22 | <meta property="og:site_name" content="{{ site.title }}"> |
23 | 23 |
|
24 | | -<!-- Webmaster Tools verfication --> |
25 | | -<meta name="google-site-verification" content="{{ site.google_verify }}"> |
26 | | -<meta name="msvalidate.01" content="{{ site.bing_verify }}"> |
| 24 | +{% if site.google_verify %}<!-- Webmaster Tools verfication --> |
| 25 | +<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %} |
| 26 | +{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %} |
27 | 27 |
|
28 | 28 | {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} |
29 | 29 | <link rel="canonical" href="{{ canonical }}"> |
30 | 30 | <link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed"> |
31 | | -<link rel="author" href="{{ site.owner.google_plus }}?rel=author"> |
| 31 | +{% if site.owner.google_plus %}<link rel="author" href="{{ site.owner.google_plus }}?rel=author">{% endif %} |
32 | 32 |
|
33 | 33 | <!-- http://t.co/dKP3o1e --> |
34 | 34 | <meta name="HandheldFriendly" content="True"> |
|
0 commit comments