{%- capture fullUrl %}{{ meta.url }}{{ page.url }}{% endcapture -%}
<!doctype html>
<html lang="en">
  <head>
    <title>{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="canonical" href="{{ fullUrl }}" />
    <meta property="og:title" content="{% if title %}{{ title }} • {% endif %}{{meta.siteName}}" />
    <meta name="description" content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
    <meta property="og:description" content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="{{ fullUrl }}" />
    <meta
      property="og:image"
      content="{%- if schema == 'blog' %}{{ meta.url }}/assets/img/social-preview/{{
        title | slugify
      }}-preview.jpeg{%- else -%}{{ meta.meta_data.opengraph_default }}{% endif -%}"
    />
    <meta property="og:image" content="{{ image | getPostImage }}">
    <meta name="theme-color" content="{{ meta.themeColor }}" />
    <meta name="generator" content="{{ eleventy.generator }}">
    <meta name="robots" content="noai, noimageai">
    <link
      href="/assets/icons/favicon.ico?v={% assetHash %}"
      rel="icon"
      sizes="any">
    <link
      href="/assets/icons/favicon.svg?v={% assetHash %}"
      rel="icon"
      type="image/svg+xml">
    <link href="/assets/icons/apple-touch-icon.png?v={% assetHash %}" rel="apple-touch-icon">
    {% capture css %}
      {% render "../assets/styles/ml.css" %}
      {% render "../assets/styles/silka.css" %}
      {% render "../assets/styles/yt-lite.css" %}
      {% render "../assets/styles/prism.css" %}
      {% render "../assets/styles/index.css" %}
    {% endcapture %}
    <style>
      {{ css | cssmin }}
    </style>
    <link rel="webmention" href="https://webmention.io/coryd.dev/webmention" />
    <link rel="pingback" href="https://webmention.io/coryd.dev/xmlrpc" />
    <link
      type="application/atom+xml"
      rel="alternate"
      title="Cory Dransfeldt"
      href="https://feedpress.me/coryd">
    <link
      rel="alternate"
      type="application/json"
      title="Cory Dransfeldt"
      href="https://feedpress.me/coryd.json" />
    <link
      rel="alternate"
      href="https://feedpress.me/coryd-follow"
      title="Cory Dransfeldt's activity feed"
      type="application/rss+xml">
      {% if schema == 'blog' %}
        <script type="application/ld+json">
          {
            "@context": "https://schema.org",
            "@type": "BlogPosting",
            "mainEntityOfPage": {
              "@type": "WebPage"
            },
            "isPartOf": {
              "@id": "{{ meta.url }}#website"
            },
            "@id": "{{ fullUrl }}",
            "headline": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
            "description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
            "image": "{% if image %}{{ image }}{% else %}{{ meta.meta_data.opengraph_default }}{% endif %}",
            "inLanguage": "{{ meta.locale }}",
            "publisher": {
              "@type": "{{ meta.siteType }}",
              "name": "{{ meta.author }}",
              "url": "{{ meta.url }}"
            },
            "author": {
              "@type": "Person",
              "name": "{{ meta.author }}"
            },
            "datePublished": "{{ page.date | isoDateOnly }}"
          }
        </script>
      {% else %}
        <script type="application/ld+json">
          {
            "@context": "https://schema.org",
            "@graph": [
              {
                "@type": "WebSite",
                "@id": "{{ meta.url }}#website",
                "url": "{{ meta.url }}",
                "name": "{%- if title %}{{ title }} • {% endif -%}{{ meta.siteName }}",
                "description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
                "inLanguage": "{{ meta.locale }}"
              }
            ]
          }
        </script>
      {% endif %}
    <script defer data-domain="coryd.dev" src="/js/script.js"></script>
    <script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
    <noscript>
      <style>
        .client-side {
          display: none
        }
      </style>
    </noscript>
  </head>
  <body>
    {{ content }}
    {% capture js %}
      {% render "../assets/scripts/script.js" %}
    {% endcapture %}
    <script>
      {{ js }}
    </script>
  </body>
</html>