From 792483232fdd32cde7ef03e9d5aba4f3a2af9a1c Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Tue, 7 Apr 2026 19:31:58 +0200 Subject: [PATCH] added lightyears font to feed --- src/routes/feed/+page.svelte | 15 +++++++++------ src/routes/feed/+page.ts | 19 ++++++++++++++++--- src/routes/feed/drawings/firstmonth.md | 11 ++++++----- src/routes/feed/electronics/3ds-usb-c.md | 11 ++++++----- src/routes/feed/electronics/deej0461.md | 10 ++++++---- src/routes/feed/feed.ts | 1 + src/routes/feed/misc/lightyears-font.md | 13 +++++++++++++ 7 files changed, 57 insertions(+), 23 deletions(-) create mode 100644 src/routes/feed/misc/lightyears-font.md diff --git a/src/routes/feed/+page.svelte b/src/routes/feed/+page.svelte index 27e5c57..a4b748d 100644 --- a/src/routes/feed/+page.svelte +++ b/src/routes/feed/+page.svelte @@ -13,7 +13,7 @@ {#snippet pageButtons(currentIndex: number)}
{#if currentIndex == 1} -

|

+

x

{:else} < {/if} @@ -23,7 +23,7 @@ {/each} {#if currentIndex == data.maxPages} -

|

+

x

{:else} > {/if} @@ -51,8 +51,11 @@ - {#each data.contents as post} - + {#each data.feedEntries as entry} +

{entry.title}

+

{entry.subtitle}

+

{entry.date}

+ {/each} @@ -101,7 +104,7 @@ background-color: var(--color-background-highlight-alt); } - /* .subtitle { + .subtitle { font-family: var(--font-mono); margin: 0; font-size: 1rem; @@ -117,5 +120,5 @@ .subtitle::after { content: " -->"; - } */ + } diff --git a/src/routes/feed/+page.ts b/src/routes/feed/+page.ts index df650ff..237b13f 100644 --- a/src/routes/feed/+page.ts +++ b/src/routes/feed/+page.ts @@ -1,5 +1,12 @@ import { entries } from './feed'; +interface FeedEntry { + content: any; + title: string; + subtitle: string; + date: string; +} + let entriesPerPage = 8; export async function load({ params, url }) { @@ -11,7 +18,7 @@ export async function load({ params, url }) { // TODO check if index exceeds maximum permitted and redirect (to max page?) - let contents = []; + let feedEntries: FeedEntry[] = []; let start = (pageIndex - 1) * entriesPerPage; for (let i = start; i < start + entriesPerPage; i += 1) { @@ -22,8 +29,14 @@ export async function load({ params, url }) { // Vite complains if I don't do this even though it's stupid const path = entries[i].split("/"); const page = await import(`./${path[0]}/${path[1]}.md`); + const md = page.metadata; - contents.push(page.default); + feedEntries.push({ + content: page.default, + title: md.title, + subtitle: md.subtitle, + date: md.date, + }); } let currentPage = pageIndex; @@ -32,6 +45,6 @@ export async function load({ params, url }) { return { currentPage, maxPages, - contents, + feedEntries, }; } \ No newline at end of file diff --git a/src/routes/feed/drawings/firstmonth.md b/src/routes/feed/drawings/firstmonth.md index 174e3ab..4fecf86 100644 --- a/src/routes/feed/drawings/firstmonth.md +++ b/src/routes/feed/drawings/firstmonth.md @@ -1,12 +1,13 @@ +--- +title: My First Month Drawing +subtitle: self-imposed drawing challenge +date: February – March 2026 +--- + -## My First Month Drawing - -

self-imposed drawing challenge

-

February – March 2026

- Back in January, I was thinking to myself that I'd really like to learn to draw. It would have some practical benefits like potentially being able to draw concept art for my game, but ultimately I just liked the idea of drawing as a hobby. I doodled a few small things before deciding that I should challenge myself to draw something every single day for an entire month (4 weeks); [I documented the entire thing here](/blog/2026/0205), but spoiler alert: I think I succeeded in learning to draw and I am now able to sketch like I was never able to before! Here are some of my favourite drawings from around that time, in chronological order: diff --git a/src/routes/feed/electronics/3ds-usb-c.md b/src/routes/feed/electronics/3ds-usb-c.md index 6626e1a..8b6a154 100644 --- a/src/routes/feed/electronics/3ds-usb-c.md +++ b/src/routes/feed/electronics/3ds-usb-c.md @@ -1,13 +1,14 @@ +--- +title: 3DS USB-C mod +subtitle: DIY charging port mod +date: October 2024 +--- + -## 3DS USB-C mod - -

DIY charging port mod

-

October 2024

- import SubtitledImage from "$lib/components/subtitled-image.svelte"; import ImageGallery from "$lib/lists/image-gallery.svelte"; -## deej0461 -

PC companion audio source controller

-

August 2024

- The world looks so different now. The world looks so different now. The world looks so different now.

+ +One of my favourite music artists, [Jaron](https://youtu.be/GXvqQ5-P82I), released his album LIGHTYEARS a little over a year ago. For his visuals, he uses a variety of symbols in place of Latin letters, and there's a converter on [his website](https://jaronsteele.com/) too. Only problem is that my browser can't seem to display most of the characters because the characters aren't included in most fonts. That's why I made a font! It allows you to type Latin characters from `A-Z` as well as numbers `0-9` and `!?` in the LIGHTYEARS style. Like this: + +

trans rights!

+ +[Download the font here](https://files.natconf.dev/public/lightyears.woff2). It's in the web-optimised `woff2` format and has most characters stripped to minimise its file size – it's less than 20 kilobytes in size! Uppercase and lowercase letters are the same. People can 'decrypt' text by copy-pasting it somewhere else! \ No newline at end of file