Add slashpages and basic nav

This commit is contained in:
Gil 2025-02-19 02:03:13 -06:00
parent f32019b525
commit 52cddce953
17 changed files with 30 additions and 8 deletions

View file

@ -2,9 +2,9 @@ import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
import markdownIt from "markdown-it"; import markdownIt from "markdown-it";
import markdownItFootnote from "markdown-it-footnote"; import markdownItFootnote from "markdown-it-footnote";
import markdownItAnchor from "markdown-it-anchor"; import markdownItAnchor from "markdown-it-anchor";
import { DateTime } from "luxon";
export default function (eleventyConfig) { export default function (eleventyConfig) {
const MARKDOWN_OPTIONS = { const MARKDOWN_OPTIONS = {
html: true, html: true,
breaks: true, breaks: true,
@ -22,6 +22,11 @@ export default function (eleventyConfig) {
// Plugins // Plugins
eleventyConfig.addPlugin(eleventyNavigationPlugin); eleventyConfig.addPlugin(eleventyNavigationPlugin);
// Filters
eleventyConfig.addFilter("formatDate", (dateObj) => {
return DateTime.fromJSDate(dateObj).toFormat('dd LLL yyyy, HH:mm ZZZZ');
});
// Passthrough copies // Passthrough copies
["src/assets"].forEach((path) => { ["src/assets"].forEach((path) => {
eleventyConfig.addPassthroughCopy(path); eleventyConfig.addPassthroughCopy(path);
@ -31,10 +36,10 @@ export default function (eleventyConfig) {
return { return {
dir: { dir: {
input: 'src', input: "src",
output: 'public', output: "public",
includes: '_includes', includes: "_includes",
layouts: '_layouts', layouts: "_layouts",
}, },
}; };
} }

View file

@ -9,3 +9,4 @@ GIL.INK CHANGELOG
2025-02-## (0.0.2) 2025-02-## (0.0.2)
================== ==================
- Basic layouts and includes - Basic layouts and includes
- Slashpages (see https://slashpages.net)

View file

@ -0,0 +1,2 @@
<p>Created {{ page.date | formatDate }}</p>
<p>{% if lastmod %}Last modified {{ lastmod | formatDate }}{% endif %}</p>

View file

@ -0,0 +1 @@
<h1 id="gil.ink" tabindex="-1">Gil.Ink</h1>

View file

@ -0,0 +1,8 @@
{% set navPages = collections.all | eleventyNavigation %}
<nav>
<ul>
{% for entry in navPages %}<li>
<a href="{{ entry.url }}" {% if entry.url == page.url %} aria-current="page" {% endif %}>{{ entry.title }}</a>
</li>{% endfor %}
</ul>
</nav>

0
src/about.md Normal file
View file

0
src/carry.md Normal file
View file

0
src/changelog.md Normal file
View file

0
src/ideas.md Normal file
View file

View file

@ -1,8 +1,10 @@
--- ---
title: 'Gil.Ink' title: 'Gil.Ink'
layout: base.njk layout: base.njk
lastmod: 2025-02-19T01:28:48.00-06:00
eleventyNavigation:
key: 'Home'
--- ---
# {{ meta.name }}
--- ---
@ -17,6 +19,7 @@ Find me:
- Matrix: [@kalanggam:matrix.org](https://matrix.to/#/@kalanggam:matrix.org) - Matrix: [@kalanggam:matrix.org](https://matrix.to/#/@kalanggam:matrix.org)
- Photos: [pixelfed.social/kalanggam](https://pixelfed.social/kalanggam) - Photos: [pixelfed.social/kalanggam](https://pixelfed.social/kalanggam)
- Reads: [bookwyrm.social/user/kalanggam](https://bookwyrm.social/user/kalanggam) - Reads: [bookwyrm.social/user/kalanggam](https://bookwyrm.social/user/kalanggam)
- Bluesky: [@kalanggam.bsky.social](https://bsky.app/profile/kalanggam.bsky.social)
Subscribe to my (upcoming) newsletter: [gilosophies.ghost.io](https://gilosophies.ghost.io) Subscribe to my (upcoming) newsletter: [gilosophies.ghost.io](https://gilosophies.ghost.io)
@ -25,3 +28,5 @@ Subscribe to my (upcoming) newsletter: [gilosophies.ghost.io](https://gilosophie
## Publications ## Publications
2022 Jul 28: ["Dear Mom, Akong Tanan"](https://www.mahalayasf.org/reflections/dear-mom-akong-tanan), _Mahalaya_ 2022 Jul 28: ["Dear Mom, Akong Tanan"](https://www.mahalayasf.org/reflections/dear-mom-akong-tanan), _Mahalaya_
---

0
src/links.md Normal file
View file

0
src/next.md Normal file
View file

0
src/now.md Normal file
View file

0
src/slashes.md Normal file
View file

0
src/tip.md Normal file
View file

0
src/uses.md Normal file
View file

0
src/why.md Normal file
View file