54 lines
3.3 KiB
HTML
54 lines
3.3 KiB
HTML
<meta charset="utf-8">
|
|
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
|
|
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
|
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
|
|
|
|
{% if site.owner.twitter %}<!-- Twitter Cards -->
|
|
{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
|
|
{% else %}<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %}
|
|
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
|
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">{% endif %}
|
|
|
|
<!-- Open Graph -->
|
|
<meta property="og:locale" content="en_US">
|
|
<meta property="og:type" content="article">
|
|
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
|
<meta property="og:site_name" content="{{ site.title }}">
|
|
|
|
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
|
|
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
|
|
|
|
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
|
|
<link rel="canonical" href="{{ canonical }}">
|
|
<link href="/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
|
{% if site.owner.google_plus %}<link rel="author" href="{{ site.owner.google_plus }}?rel=author">{% endif %}
|
|
|
|
<!-- http://t.co/dKP3o1e -->
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="MobileOptimized" content="320">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- For all browsers -->
|
|
<link rel="stylesheet" href="{% asset_path main %}">
|
|
<!-- Webfonts -->
|
|
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
|
|
|
|
<meta http-equiv="cleartype" content="on">
|
|
|
|
<!-- Load Modernizr -->
|
|
{% javascript vendor/modernizr-2.6.2.custom.min.js %}
|
|
|
|
<!-- Icons -->
|
|
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.png">
|
|
|
|
{% if page.image.background or site.background %}
|
|
{% capture background %}{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %}{% endcapture %}
|
|
{% unless background contains 'http://' or background contains 'https://' %}{% capture background %}{{ background | asset_path }}{% endcapture %}{% endunless %}
|
|
<style type="text/css">body {background-image:url({{ background }});}</style>
|
|
{% endif %}
|