James Peret's blog. Built with Jekyll and the Mikey theme.

head.html 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <head>
  2. <link href="http://gmpg.org/xfn/11" rel="profile">
  3. <link type="text/plain" rel="author" href="{{ site.url }}/humans.txt" />
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  6. <!-- Enable responsiveness on mobile devices-->
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
  8. <!-- Optimized for search engines -->
  9. <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
  10. {% if page.robots %}
  11. <meta name="robots" content="{{ page.robots }}">
  12. {% endif %}
  13. <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
  14. {% if page.next.url %}
  15. <link rel="next" href="{{ page.next.url | replace:'index.html','' | prepend: site.url }}" title="{{ page.next.title }}">
  16. {% endif %}
  17. {% if page.previous.url %}
  18. <link rel="prev" href="{{ page.previous.url | replace:'index.html','' | prepend: site.url }}" title="{{ page.previous.title }}">
  19. {% endif %}
  20. <!-- Twitter card -->
  21. <meta name="twitter:card" content="summary_large_image">
  22. <meta name="twitter:site" content="@{{ site.author.twitter }}">
  23. <meta name="twitter:creator" content="@{{ site.author.twitter }}">
  24. <meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}">
  25. <meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
  26. <meta name="twitter:image" content="{% if page.image.feature %}{{ page.image.feature | prepend: site.baseurl_featured_img | prepend: site.url }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
  27. <meta name="twitter:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
  28. <!-- Open graph -->
  29. <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}">
  30. <meta property="og:type" content="{% if page.date %}article{% else %}website{% endif %}">
  31. <meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
  32. <meta property="og:image" content="{% if page.image.feature %}{{ page.image.feature | prepend: site.baseurl_featured_img | prepend: site.url }}{% else %}{{ site.icon | prepend: site.baseurl | prepend: site.url }}{% endif %}">
  33. <meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
  34. <meta property="og:site_name" content="{{ site.name }}">
  35. <meta property="og:locale" content="{{ site.locale }}">
  36. {% if page.date %}
  37. <meta property="article:modified_time" content="{% if page.last_modified_at %}{{ page.last_modified_at | date_to_xmlschema }}{% else %}{{ page.date | date_to_xmlschema }}{% endif %}">
  38. <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
  39. <meta property="article:author" content="https://www.facebook.com/{{ site.author.facebook }}">
  40. {% for post in site.related_posts limit:3 %}
  41. <meta property="og:see_also" content="{{ post.url | replace:'index.html','' | prepend: site.url }}">
  42. {% endfor %}
  43. {% endif %}
  44. {% if page.categories %}
  45. {% for category in page.categories limit:1 %}
  46. <meta property="article:section" content="{{ category }}">
  47. {% endfor %}
  48. {% endif %}
  49. {% if page.tags %}
  50. {% for tag in page.tags %}
  51. <meta property="article:tag" content="{{ tag }}">
  52. {% endfor %}
  53. {% endif %}
  54. <meta property="fb:admins" content="{{ site.fb_admins }}">
  55. <meta property="fb:app_id" content="{{ site.fb_appid }}">
  56. <title>
  57. {% if page.title == "Mickey Theme for Jekyll" %}
  58. {{ site.title }}
  59. {% else %}
  60. {{ page.title }} &middot; {{ site.title }}
  61. {% endif %}
  62. </title>
  63. <!-- CSS -->
  64. <link rel="stylesheet" href="{{ site.baseurl }}assets/css/main.css">
  65. {% if page.syntaxHighlighter %}
  66. <link rel="stylesheet" href="{{ site.baseurl }}assets/css/prism-okaidia.css">
  67. <link rel="stylesheet" href="{{ site.baseurl }}assets/css/prism-line-numbers.css">
  68. {% endif %}
  69. <!-- Fonts -->
  70. <link href='http://fonts.googleapis.com/css?family=Source+Serif+Pro:700,400' rel='stylesheet' type='text/css'>
  71. <link href='http://fonts.googleapis.com/css?family=Roboto:100,300' rel='stylesheet' type='text/css'>
  72. <link href='http://fonts.googleapis.com/css?family=PT+Sans:700' rel='stylesheet' type='text/css'>
  73. <!-- Icons -->
  74. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}assets/apple-touch-icon-144-precomposed.png">
  75. <link rel="shortcut icon" href="{{ site.baseurl }}assets/images/favicon.ico">
  76. <!-- RSS -->
  77. <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
  78. <!-- modernizer -->
  79. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
  80. <!--[if lt IE 9]>
  81. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
  82. <![endif]-->
  83. <!--[if (gte IE 6)&(lte IE 8)]>
  84. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script>
  85. <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js"></script>
  86. <![endif]-->
  87. </head>