Add slashpages and basic nav
This commit is contained in:
parent
f32019b525
commit
52cddce953
15
.eleventy.js
15
.eleventy.js
|
@ -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",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
|
@ -0,0 +1,2 @@
|
||||||
|
<p>Created {{ page.date | formatDate }}</p>
|
||||||
|
<p>{% if lastmod %}Last modified {{ lastmod | formatDate }}{% endif %}</p>
|
|
@ -0,0 +1 @@
|
||||||
|
<h1 id="gil.ink" tabindex="-1">Gil.Ink</h1>
|
|
@ -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
0
src/about.md
Normal file
0
src/carry.md
Normal file
0
src/carry.md
Normal file
0
src/changelog.md
Normal file
0
src/changelog.md
Normal file
0
src/ideas.md
Normal file
0
src/ideas.md
Normal 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
0
src/links.md
Normal file
0
src/next.md
Normal file
0
src/next.md
Normal file
0
src/now.md
Normal file
0
src/now.md
Normal file
0
src/slashes.md
Normal file
0
src/slashes.md
Normal file
0
src/tip.md
Normal file
0
src/tip.md
Normal file
0
src/uses.md
Normal file
0
src/uses.md
Normal file
0
src/why.md
Normal file
0
src/why.md
Normal file
Loading…
Reference in a new issue