{% capture title %}
  {% if page.title and page.title != "Home" %}
    {{ page.title }} &middot; {{ site.title }}
  {% else %}
    {{ site.title }}
  {% endif %}
{% endcapture %}

{% capture description %}
  {% if page.date %}
    {{ page.date | date: "%d.%m.%Y" }}
  {% endif %}
  {% if page.location %}
    &nbsp;/&nbsp;{{ page.location }}
  {% endif %}
{% endcapture %}
{% if description == "" %}
  {% assign description = site.description %}
{% endif %}

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="referrer" content="no-referrer">

  <title>{{ title }}</title>
  <meta name="description" content="{{ description }}">

  <link rel="stylesheet" href="{{ "/assets/css/styles.css" | prepend: site.baseurl }}">
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

  <meta property="og:title" content="{{ title }}">
  {% if description %}<meta property="og:description" content="{{ description }}">{% endif %}
  <meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
  <meta property="og:type" content="webseite">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:site" content="@_nyansen">
  <meta name="twitter:domain" content="nicojensen.de">
  <meta name="twitter:creator" content="@_mnyansen">
  <meta name="twitter:title" content="{{title}}">
  <meta name="twitter:card" content="summary_large_image">

  <link rel="home" type="application/rss+xml" href="/feed.xml" />
  <link rel="shortcut icon" type="image/png" href="/assets/images/logo.png"/>
</head>