chore: initial setup

This commit is contained in:
Stefan Imhoff
2021-04-28 18:07:34 +02:00
commit f76fd39fee
35 changed files with 21422 additions and 0 deletions

34
src/layouts/base.njk Normal file
View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="de" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
{%- if page.url === "/" -%}
{{ site.author }} · {{ site.description }}
{%- else -%}
{{ title }} · {{ site.author }}
{%- endif -%}
</title>
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
<script type="module">
document.documentElement.classList.remove('no-js');
document.documentElement.classList.add('js');
</script>
{% include "scripts.njk" %}
{% include "styles.njk" %}
{% include "favicons.njk" %}
{% include "meta-tags.njk" %}
{% include "preload.njk" %}
{% include "robots.njk" %}
</head>
<body {% if bodyClass %}class="{{ bodyClass }}"{% endif %}>
{% include "icon-sprites.njk" %}
{{ content | safe }}
<script src="/assets/scripts/main.js" async></script>
</body>
</html>