diff --git a/.eleventy.js b/.eleventy.js index 12f336f..9781da7 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,9 +2,9 @@ import eleventyNavigationPlugin from "@11ty/eleventy-navigation"; import markdownIt from "markdown-it"; import markdownItFootnote from "markdown-it-footnote"; import markdownItAnchor from "markdown-it-anchor"; +import { DateTime } from "luxon"; export default function (eleventyConfig) { - const MARKDOWN_OPTIONS = { html: true, breaks: true, @@ -22,6 +22,11 @@ export default function (eleventyConfig) { // Plugins eleventyConfig.addPlugin(eleventyNavigationPlugin); + // Filters + eleventyConfig.addFilter("formatDate", (dateObj) => { + return DateTime.fromJSDate(dateObj).toFormat('dd LLL yyyy, HH:mm ZZZZ'); + }); + // Passthrough copies ["src/assets"].forEach((path) => { eleventyConfig.addPassthroughCopy(path); @@ -31,10 +36,10 @@ export default function (eleventyConfig) { return { dir: { - input: 'src', - output: 'public', - includes: '_includes', - layouts: '_layouts', + input: "src", + output: "public", + includes: "_includes", + layouts: "_layouts", }, }; } diff --git a/CHANGELOG b/CHANGELOG index 2f0a6c3..a98d351 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,4 +8,5 @@ GIL.INK CHANGELOG 2025-02-## (0.0.2) ================== -- Basic layouts and includes \ No newline at end of file +- Basic layouts and includes +- Slashpages (see https://slashpages.net) \ No newline at end of file diff --git a/src/_includes/footer.njk b/src/_includes/footer.njk index e69de29..57ce2cf 100644 --- a/src/_includes/footer.njk +++ b/src/_includes/footer.njk @@ -0,0 +1,2 @@ +

Created {{ page.date | formatDate }}

+

{% if lastmod %}Last modified {{ lastmod | formatDate }}{% endif %}

\ No newline at end of file diff --git a/src/_includes/header.njk b/src/_includes/header.njk index e69de29..3bc10e7 100644 --- a/src/_includes/header.njk +++ b/src/_includes/header.njk @@ -0,0 +1 @@ +

Gil.Ink

\ No newline at end of file diff --git a/src/_includes/nav.njk b/src/_includes/nav.njk index e69de29..6d46ca7 100644 --- a/src/_includes/nav.njk +++ b/src/_includes/nav.njk @@ -0,0 +1,8 @@ +{% set navPages = collections.all | eleventyNavigation %} + \ No newline at end of file diff --git a/src/about.md b/src/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/carry.md b/src/carry.md new file mode 100644 index 0000000..e69de29 diff --git a/src/changelog.md b/src/changelog.md new file mode 100644 index 0000000..e69de29 diff --git a/src/ideas.md b/src/ideas.md new file mode 100644 index 0000000..e69de29 diff --git a/src/index.md b/src/index.md index 8636e66..1d58edc 100644 --- a/src/index.md +++ b/src/index.md @@ -1,8 +1,10 @@ --- title: 'Gil.Ink' 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) - Photos: [pixelfed.social/kalanggam](https://pixelfed.social/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) @@ -24,4 +27,6 @@ Subscribe to my (upcoming) newsletter: [gilosophies.ghost.io](https://gilosophie ## Publications -2022 Jul 28: ["Dear Mom, Akong Tanan"](https://www.mahalayasf.org/reflections/dear-mom-akong-tanan), _Mahalaya_ \ No newline at end of file +2022 Jul 28: ["Dear Mom, Akong Tanan"](https://www.mahalayasf.org/reflections/dear-mom-akong-tanan), _Mahalaya_ + +--- diff --git a/src/links.md b/src/links.md new file mode 100644 index 0000000..e69de29 diff --git a/src/next.md b/src/next.md new file mode 100644 index 0000000..e69de29 diff --git a/src/now.md b/src/now.md new file mode 100644 index 0000000..e69de29 diff --git a/src/slashes.md b/src/slashes.md new file mode 100644 index 0000000..e69de29 diff --git a/src/tip.md b/src/tip.md new file mode 100644 index 0000000..e69de29 diff --git a/src/uses.md b/src/uses.md new file mode 100644 index 0000000..e69de29 diff --git a/src/why.md b/src/why.md new file mode 100644 index 0000000..e69de29