|
| 1 | +<meta charset="utf-8"> |
| 2 | +<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title> |
| 3 | +<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 4 | +{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %} |
| 5 | + |
| 6 | +{% if site.owner.twitter %}<!-- Twitter Cards --> |
| 7 | +{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image"> |
| 8 | +<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}"> |
| 9 | +{% else %}<meta name="twitter:card" content="summary"> |
| 10 | +<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %} |
| 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 }}{% else %}{{ site.description }}{% endif %}"> |
| 13 | +<meta name="twitter:creator" content="@{{ site.owner.twitter }}">{% endif %} |
| 14 | + |
| 15 | +<!-- Open Graph --> |
| 16 | +<meta property="og:locale" content="en_US"> |
| 17 | +<meta property="og:type" content="article"> |
| 18 | +<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> |
| 19 | +<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 20 | +<meta property="og:url" content="{{ site.url }}{{ page.url }}"> |
| 21 | +<meta property="og:site_name" content="{{ site.title }}"> |
| 22 | + |
| 23 | +{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %} |
| 24 | +{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %} |
| 25 | + |
| 26 | +{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} |
| 27 | +<link rel="canonical" href="{{ canonical }}"> |
| 28 | +<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed"> |
| 29 | + |
| 30 | +<!-- http://t.co/dKP3o1e --> |
| 31 | +<meta name="HandheldFriendly" content="True"> |
| 32 | +<meta name="MobileOptimized" content="320"> |
| 33 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 34 | + |
| 35 | +<!-- For all browsers --> |
| 36 | +<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css"> |
| 37 | +<!-- Webfonts --> |
| 38 | +<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css"> |
| 39 | + |
| 40 | +<meta http-equiv="cleartype" content="on"> |
| 41 | + |
| 42 | +<!-- Load Modernizr --> |
| 43 | +<script src="{{ site.url }}/assets/js/vendor/modernizr-2.6.2.custom.min.js"></script> |
| 44 | + |
| 45 | +<!-- Icons --> |
| 46 | +<!-- 16x16 --> |
| 47 | +<link rel="shortcut icon" href="{{ site.url }}/favicon.ico"> |
| 48 | +<!-- 32x32 --> |
| 49 | +<link rel="shortcut icon" href="{{ site.url }}/favicon.png"> |
| 50 | +<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices --> |
| 51 | +<link rel="apple-touch-icon-precomposed" href="{{ site.url }}/images/apple-touch-icon-precomposed.png"> |
| 52 | +<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini --> |
| 53 | +<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/images/apple-touch-icon-72x72-precomposed.png"> |
| 54 | +<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch --> |
| 55 | +<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/images/apple-touch-icon-114x114-precomposed.png"> |
| 56 | +<!-- 144x144 (precomposed) for iPad 3rd and 4th generation --> |
| 57 | +<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/apple-touch-icon-144x144-precomposed.png"> |
| 58 | + |
| 59 | +{% if page.image.background or site.background %} |
| 60 | +{% capture background %}{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %}{% endcapture %} |
| 61 | +{% unless background contains 'http://' or background contains 'https://' %}{% capture background %}{{ site.url }}/images/{{ background }}{% endcapture %}{% endunless %} |
| 62 | +<style type="text/css">body {background-image:url({{ background }});}</style> |
| 63 | +{% endif %} |
0 commit comments