From 629dfa70ebde5aa4ce70683a75ec7209accba3ea Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 18 Feb 2024 15:41:40 -0500 Subject: lume: new index page Signed-off-by: Xe Iaso --- dhall/resume.dhall | 12 +++---- lume/_config.ts | 8 ++--- lume/plugins/annotate_year.ts | 11 +++++++ lume/src/index.jsx | 76 +++++++++++++++++++++++++++++++++++++++++++ lume/src/index.njk | 41 ----------------------- 5 files changed, 96 insertions(+), 52 deletions(-) create mode 100644 lume/plugins/annotate_year.ts create mode 100644 lume/src/index.jsx delete mode 100644 lume/src/index.njk diff --git a/dhall/resume.dhall b/dhall/resume.dhall index 7036e9e..29b4108 100644 --- a/dhall/resume.dhall +++ b/dhall/resume.dhall @@ -46,12 +46,6 @@ in Resume::{ , description = "The release post for Palisade, a tool to automate version bumping, release tagging and more." } - , Link::{ - , url = "https://tailscale.com/blog/steam-deck/" - , title = "Putting Tailscale on the Steam Deck" - , description = - "An engineering log of all the steps taken to run Tailscale on the Valve Steam Deck and the tradeoffs between the various methods you could use to do this." - } , Link::{ , url = "https://tailscale.com/blog/magicdns-why-name/" , title = "An epic treatise on DNS, magical and otherwise" @@ -71,5 +65,11 @@ in Resume::{ , description = "An award-winning April Fools Day post describing how you can use Tailscale via Headscale via Tailscale Funnel. This post is notable for demonstrating all five of the Tailscale company values at the same time." } + , Link::{ + , url = "https://fly.io/blog/how-i-fly/" + , title = "How I Fly" + , description = + "A post about how I use Fly.io to host my personal website and its supporting infrastructure." + } ] } diff --git a/lume/_config.ts b/lume/_config.ts index 7cfdec0..f337420 100644 --- a/lume/_config.ts +++ b/lume/_config.ts @@ -11,6 +11,8 @@ import postcss from "lume/plugins/postcss.ts"; import sitemap from "lume/plugins/sitemap.ts"; import readInfo from "lume/plugins/reading_info.ts"; +import annotateYear from "./plugins/annotate_year.ts"; + //import pagefind from "lume/plugins/pagefind.ts"; //import _ from "npm:@pagefind/linux-x64"; @@ -103,10 +105,6 @@ site.use(sitemap({ site.use(readInfo({ extensions: [".md", ".mdx"], })); -site.preprocess([".html"], (pages) => { - for (const page of pages) { - page.data.year = page.data.date.getFullYear(); - } -}); +site.use(annotateYear()); export default site; diff --git a/lume/plugins/annotate_year.ts b/lume/plugins/annotate_year.ts new file mode 100644 index 0000000..39b6e2c --- /dev/null +++ b/lume/plugins/annotate_year.ts @@ -0,0 +1,11 @@ +import type Site from "lume/core/site.ts"; + +export default function () { + return (site: Site) => { + site.preprocess([".html"], (pages) => { + for (const page of pages) { + page.data.year = page.data.date.getFullYear(); + } + }); + }; +} \ No newline at end of file diff --git a/lume/src/index.jsx b/lume/src/index.jsx new file mode 100644 index 0000000..1f7f85a --- /dev/null +++ b/lume/src/index.jsx @@ -0,0 +1,76 @@ +export const layout = "base.njk"; +export const date = "2012-12-21"; + +export default ({ search, resume, notableProjects, contactLinks }, { date }) => { + const dateOptions = { year: "numeric", month: "2-digit", day: "2-digit" }; + + return ( + <> +

{resume.name}

+

{resume.tagline} - {resume.location.city}, {resume.location.country}

+
+
+ A pink haired orca character +
+
+

+ I'm Xe Iaso, I'm a technical educator, conference speaker, twitch streamer, vtuber, and philosopher that focuses on ways to help make technology easier to understand and do cursed things in the process. I live in {resume.location.city} with my husband and I do developer relations professionally. I am an avid writer for my blog, where I have over 400 articles. I regularly experiment with new technologies and find ways to mash them up with old technologies for my own amusement. +

+
+
+ +

Recent Articles

+ + +

Notable Publications

+ + +

Highlighted Projects

+ + +

Quick Links

+ + +

Looking for someone for your team? Check here.

+ +
+ {resume.buzzwords.map((buzzword) => ( + {buzzword} + ))} +
+ + ); +} \ No newline at end of file diff --git a/lume/src/index.njk b/lume/src/index.njk deleted file mode 100644 index 9eb0a09..0000000 --- a/lume/src/index.njk +++ /dev/null @@ -1,41 +0,0 @@ ---- -date: 2012-12-21 ---- - -

{{ resume.name }}

-

{{ resume.tagline }} - {{ resume.location.city }}, {{ resume.location.country }}

-

I'm a speaker, writer, chaos magician, and committed technologist. I regularly write articles on - my blog and give conference talks.

- -

Highlighted Projects

- - -

Recent Articles

- - -

Quick Links

- - -

Looking for someone for your team? Check here.

- -
- {% for word in resume.buzzwords %} - {{word}} - {% endfor %} -
-- cgit v1.2.3