chugging away, no i am not splitting this into fine-grained commits
This commit is contained in:
24
_includes/footer.njk
Normal file
24
_includes/footer.njk
Normal file
@ -0,0 +1,24 @@
|
||||
<footer>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/colophon" title="colophon" aria-label="colophon"
|
||||
{% if page.url == "/colophon/" %}aria-current="page"{% endif %}>
|
||||
colophon
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/" title="go home"
|
||||
aria-label="go home | {{ metadata.title }} from {{ metadata.author }} in 2026"
|
||||
{% if page.url == "/" %}aria-current="page"{% endif %}>
|
||||
{{ metadata.title }} from {{ metadata.author }} in 2026</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="https://heckin.technology/inherentlee/leecat.art" title="source code"
|
||||
aria-label="source code" target="_blank" rel="external">
|
||||
src
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
22
_includes/header.njk
Normal file
22
_includes/header.njk
Normal file
@ -0,0 +1,22 @@
|
||||
<header>
|
||||
|
||||
<a href="#main" id="skip" title="skip to main content" aria-label="skip to main content">
|
||||
<i class="fa-solid fa-forward" aria-hidden="true"></i> skip
|
||||
</a>
|
||||
|
||||
<nav aria-label="main navigation">
|
||||
<ul>
|
||||
{% for entry in collections.all | eleventyNavigation %}
|
||||
<li>
|
||||
<a href="{{ entry.url }}" title="{{ entry.data.label }}"
|
||||
{% if entry.url == page.url %}aria-current="page"{% endif %}
|
||||
aria-label="{{ entry.data.label }}">
|
||||
<i class="{{ entry.data.icon }}" aria-hidden="true"></i>
|
||||
<span class="menu-text">{{ entry.title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
@ -16,6 +16,7 @@
|
||||
|
||||
{# Styles #}
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
<link rel="stylesheet" href="/assets/css/nav.css">
|
||||
|
||||
{# Fonts #}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
@ -26,5 +27,11 @@
|
||||
<script src="https://kit.fontawesome.com/884dded219.js" crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
{{ content | safe }}
|
||||
{% include "header.njk" %}
|
||||
|
||||
<main id="main">
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
|
||||
{% include "footer.njk" %}
|
||||
<body>
|
||||
6
_includes/layouts/page.njk
Normal file
6
_includes/layouts/page.njk
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: base.njk
|
||||
---
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
{{ content | safe }}
|
||||
8
_includes/layouts/post.njk
Normal file
8
_includes/layouts/post.njk
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: base.njk
|
||||
---
|
||||
<article>
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
@ -7,7 +7,7 @@
|
||||
{% endif %}
|
||||
<h2>{{ post.data.title }}</h2>
|
||||
<ul>
|
||||
{% for tag in post.data.tags %}
|
||||
{% for tag in post.data.tags | removeBasicTags %}
|
||||
<li>{{ tag }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user