crimsontome.com/_includes/layouts/base.njk

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-10-15 22:30:12 +01:00
<!doctype html>
<html lang="en">
2022-09-06 18:17:56 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title or metadata.title }}</title>
<meta name="description" content="{{ description or metadata.description }}">
<link rel="stylesheet" href="{{ '/css/index.css' | url }}">
<link rel="stylesheet" href="{{ '/css/prism-base16-monokai.dark.css' | url }}">
<link rel="alternate" href="{{ metadata.feed.path | url }}" type="application/atom+xml"
title="{{ metadata.title }}">
<link rel="alternate" href="{{ metadata.jsonfeed.path | url }}" type="application/json"
title="{{ metadata.title }}">
<link rel="icon" href="/img/favicon.ico" />
</head>
2021-10-15 22:30:12 +01:00
2022-09-06 18:17:56 +01:00
<body>
<header>
<h1 class="home"><a href="{{ '/' | url }}">{{ metadata.title }}</a></h1>
{#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #}
</header>
2021-10-15 22:30:12 +01:00
2022-09-06 18:17:56 +01:00
<main{% if templateClass %} class="{{ templateClass }}" {% endif %}>
{{ content | safe }}
</main>
2021-10-15 22:30:12 +01:00
2022-09-06 18:17:56 +01:00
<nav>
<ul class="nav">
{%- for entry in collections.all | eleventyNavigation %}
<li class="nav-item{% if entry.url == page.url %} nav-item-active{% endif %}"><a
href="{{ entry.url | url }}">{{ entry.title }}</a></li>
{%- endfor %}
</ul>
</nav>
</body>
</html>