feat: rename includes and data directories
This commit is contained in:
parent
864bc7be71
commit
408e859ef4
41 changed files with 7 additions and 9 deletions
57
src/includes/partials/footer.html
Normal file
57
src/includes/partials/footer.html
Normal file
|
@ -0,0 +1,57 @@
|
|||
<footer class="bg-surface mt-1.5 py-1.5">
|
||||
<div class="wrapper flow">
|
||||
<div class="repel">
|
||||
<p>© {{ meta.author }} 2018 - 2025.</p>
|
||||
<nav>
|
||||
<ul class="cluster p-0 m-0 line-height-m" role="list">
|
||||
{% for link in navigation.bottom %}
|
||||
<li>
|
||||
<a href="{{ link.url }}">{{ link.text }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="repel">
|
||||
<nav class="flow-space-0.5">
|
||||
<ul class="cluster p-0 m-0 gap-0.5" role="list">
|
||||
<li>
|
||||
<a href="/feeds"
|
||||
class="button button--alt"
|
||||
aria-label="Feeds"
|
||||
title="Feeds">{% include "svgs/rss.svg" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ meta.github.url }}"
|
||||
class="button button--alt"
|
||||
target="_blank"
|
||||
rel="me external noreferrer noopener"
|
||||
title="GitHub"
|
||||
aria-label="GitHub">{% include "svgs/social-github.svg" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ meta.mastodon.url }}"
|
||||
class="button button--alt"
|
||||
target="_blank"
|
||||
rel="me external noreferrer noopener"
|
||||
title="Mastodon"
|
||||
aria-label="Mastodon">{% include "svgs/social-mastodon.svg" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<ul class="cluster p-0 m-0" role="list">
|
||||
<li>
|
||||
<a href="/changelog">Changelog</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/webrings">Webrings</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ meta.repoUrl }}"
|
||||
target="_blank"
|
||||
rel="me external noreferrer noopener">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
29
src/includes/partials/header.html
Normal file
29
src/includes/partials/header.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<header class="navbar py-1 mb-2">
|
||||
<a href="#main">Skip to content</a>
|
||||
<div class="wrapper">
|
||||
<nav class="repel">
|
||||
<div class="site-logo flex items-center gap-0.5">
|
||||
<a class="logo flex items-center justify-center"
|
||||
aria-label="Go to index"
|
||||
href="{{ meta.url }}">
|
||||
<img eleventy:ignore
|
||||
src="/assets/images/logo.svg"
|
||||
width="32"
|
||||
height="32"
|
||||
alt="" />
|
||||
</a>
|
||||
<a class="wordmark flex" href="{{ meta.url }}" aria-label="Go to index">
|
||||
<svg height="0" width="0">
|
||||
<filter id="3d_text" color-interpolation-filters="sRGB">
|
||||
<feDropShadow dx="0" dy="1" stdDeviation="0" flood-opacity="1" flood-color="var(--color-shadow)" />
|
||||
<feDropShadow dx="0" dy="2" stdDeviation="0" flood-opacity="1" flood-color="var(--color-shadow)" />
|
||||
</filter>
|
||||
</svg>
|
||||
<span>wonderful</span>
|
||||
<span>frog</span>
|
||||
</a>
|
||||
</div>
|
||||
{% include "partials/menu.html" %}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
10
src/includes/partials/menu.html
Normal file
10
src/includes/partials/menu.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<ul class="menu list-none cluster p-0 m-0">
|
||||
{% for item in navigation.top %}
|
||||
<li>
|
||||
<a class="button button--alt font-size-s line-height-m"
|
||||
href="{{ item.url }}"
|
||||
title="{{ item.text }}"
|
||||
aria-label="{{ item.text }}">{% include "svgs/" + item.icon + ".svg" %}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
42
src/includes/partials/meta.html
Normal file
42
src/includes/partials/meta.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<base href="{{ page.url }}" />
|
||||
<meta property="og:title"
|
||||
content="{% if title %}{{ title }} • {% endif %}{{ meta.siteName }}" />
|
||||
<meta name="description"
|
||||
content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
|
||||
<meta property="og:description"
|
||||
content="{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="{{ fullUrl }}" />
|
||||
<meta name="theme-color"
|
||||
content="#0e90a4"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
<meta name="theme-color"
|
||||
content="#008599"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<meta name="generator" content="{{ eleventy.generator }}" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<meta name="view-transition" content="same-origin" />
|
||||
<link rel="canonical" href="{{ meta.url }}{{ page.url }}" />
|
||||
<link rel="icon" href="/assets/images/favicon.png" sizes="any" />
|
||||
<link rel="shortcut icon" href="/assets/images/favicon.png" />
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Posts • {{ meta.siteName }}"
|
||||
href="/feeds/posts.xml" />
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Books • {{ meta.siteName }}"
|
||||
href="/feeds/books.xml" />
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Games • {{ meta.siteName }}"
|
||||
href="/feeds/games.xml" />
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Watching • {{ meta.siteName }}"
|
||||
href="/feeds/watching.xml" />
|
||||
<link rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Firehose • {{ meta.siteName }}"
|
||||
href="/feeds/all.xml" />
|
||||
<meta name="fediverse:creator" content="{{ meta.mastodon.name }}">
|
Loading…
Add table
Add a link
Reference in a new issue