cheatsheets/_includes/head.html

44 lines
2.0 KiB
HTML

<!doctype html>
<html lang='en' class='{{ page.html_class }}'>
<head>
<meta charset='utf-8'>
{% if page.title %}
<title>{{ page.title }} &mdash; {{ site.meta.title }}</title>
<meta content='{{ page.title }}' property='og:title'>
<meta content='{{ page.title }}' property='twitter:title'>
<meta content='article' property='og:type'>
{% else %}
<title>{{ site.meta.title }}</title>
<meta content='{{ site.meta.title }}' property='og:title'>
<meta content='{{ site.meta.title }}' property='twitter:title'>
<meta content='blog' property='og:type'>
{% endif %}
{% if page.meta.description %}
<meta content="{{ page.meta.description }}" name="description">
<meta content="{{ page.meta.description }}" property="og:description">
{% else if page.url == '/index.html' && site.meta.description %}
<meta content="{{ site.meta.description }}" name="description">
<meta content="{{ site.meta.description }}" property="og:description">
{% endif %}
{% if page.url != '/index.html' %}
<link rel="canonical" href="{{ site.meta.url }}{{ page.url }}">
<meta name="og:url" content="{{ site.meta.url }}{{ page.url }}">
<link rel="prefetch" href="{{ site.meta.url }}">
<link rel="prerender" href="{{ site.meta.url }}">
{% endif %}
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<link href='/favicon.png' rel='shortcut icon'>
{% if site.analytics %}<script>if(~location.hostname.indexOf("{{site.meta.hostname}}")){var _gaq=_gaq||[];_gaq.push(["_setAccount","{{ site.analytics.id }}"]);_gaq.push(["_trackPageview"]);(function(){var ga=document.createElement("script");ga.async=true;ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga,s)})()}</script>{% endif %}
<link href="http://ricostacruz.com/til/assets/style.css" rel="stylesheet" />
<link href="assets/style.css" rel="stylesheet" />
</head>
<body>
<div class='all'>