initial commit

This commit is contained in:
Glyphscribe Ety committed 2026-11-10 22:09:00 -06:00
commit 611ab6a9c7
12 files changed
+114

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
node_modules/
_site/
.cache/
ops/.env
.DS_Store
+20
View File
@@ -0,0 +1,20 @@
const UTC_LONG = new Intl.DateTimeFormat("en-US", { dateStyle: "long", timeZone: "UTC"});
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "src/assets": "assets"});
eleventyConfig.addPassthroughCopy({ "src/public": "/" });
eleventyConfig.addPreprocessor("drafts", "*", (data) => {
if (data.draft) return false;
});
eleventyConfig.addFilter("readableDate", (date) => UTC_LONG.format(date));
eleventyConfig.addFilter("isoDate", (date) => date.toISOString().slice(0, 10));
return {
dir: { input: "src" },
templateFormats: ["md", "njk", "html"],
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk"
};
}
+18
View File
@@ -0,0 +1,18 @@
{
"name": "site",
"private": true,
"type": "module",
"engines": {
"node": ">=22"
},
"scripts": {
"build": "eleventy",
"serve": "eleventy --serve",
"check": "html-validate \"_site/**/*.html\"",
"clean": "rm -rf _site"
},
"devDependencies": {
"@11ty/eleventy": "^3.1.0",
"html-validate": "^9.0.0"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"title": "Etynity Test Site",
"description": "A small hand-written website using 11ty.",
"url": "https://ety-test.mch.onl",
"language": "en",
"author": {
"name": "Glyphscribe Ety"
},
"nav": [
{ "title": "Home", "url": "/" },
{ "title": "About", "url": "/about/" }
]
}
+18
View File
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="{{ site.language }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if title and page.url != "/" %}{{ title }} · {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ description or site.description }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
</head>
<body>
{% include "partials/header.njk" %}
<main id="main">
{{ content | safe }}
</main>
{% include "partials/footer.njk" %}
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
<footer class="site-footer">
<p>© {{ site.author.name }} 2026</p>
</footer>
+10
View File
@@ -0,0 +1,10 @@
<header class="site-header">
<a class="site-title" href="/">{{ site.title }}</a>
<nav aria-label="Main">
<ul>
{%- for item in site.nav %}
<li><a href="{{ item.url }}"{% if item.url == page.url or (item.url != "/" and page.url.startsWith(item.url)) %} aria-current="page"{% endif %}>{{ item.title }}</a></li>
{%- endfor %}
</ul>
</nav>
</header>
+10
View File
@@ -0,0 +1,10 @@
---
title: About
description: Who is this ety?
layout: layouts/base.njk
permalink: /about/
---
# About
Yeaaaah. You're in the right place.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+17
View File
@@ -0,0 +1,17 @@
---
title: Home
description: Welcome to ety.onl.
layout: layouts/base.njk
---
# Hello
This is the main page. Markdown with the good stuff on top.
## Content A
Is pretty cool.
## Content B
Is pretty cool, too.