<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {% if title %}
      {% set pageTitle %}{{ title }} | {{ metadata.title }}{% endset %}
    {% else %}
      {% set pageTitle = metadata.title %}
    {% endif %}
    <title>{{ pageTitle }}</title>
    <meta name="description" content="{{ description or metadata.description }}">

    <meta property="og:title" content="{{ pageTitle }}" />
    <meta property="og:type" content="website" />
    <meta property="og:description" content="{{ description or metadata.description }}" />
    <meta property="og:site_name" content="{{ metadata.title }}" />

    <meta name="generator" content="{{ eleventy.generator }}">

    {# Styles #}
    <style>{% include "css/main.css" %}</style>
    <style>{% include "css/nav.css" %}</style>

    <style>{% getBundle "css" %}</style>

    {# JS #}
    <script type="module">{% getBundle "js" %}</script>

    {# Fonts #}
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
  </head>
  <body>
    {% include "header.njk" %}

    <main id="main">
      <h1>{{ title }}</h1>

      {{ content | safe }}
    </main>

    {% include "footer.njk" %}

    <!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
  </body>
</html>
