mirror of
https://github.com/kogakure/website-11ty-kogakure.de.git
synced 2026-02-03 20:25:30 +00:00
chore: initial setup
This commit is contained in:
34
src/layouts/base.njk
Normal file
34
src/layouts/base.njk
Normal 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>
|
||||
Reference in New Issue
Block a user