diff --git a/src/routes/art/+page.svelte b/src/routes/art/+page.svelte deleted file mode 100644 index f679b7a..0000000 --- a/src/routes/art/+page.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - - - Art | denizk0461 - - - - - -

Here I have collected the products of some of my creative endeavours. Check them out below!

- - - -
\ No newline at end of file diff --git a/src/routes/feed/+page.svelte b/src/routes/feed/+page.svelte deleted file mode 100644 index b0bd18f..0000000 --- a/src/routes/feed/+page.svelte +++ /dev/null @@ -1,123 +0,0 @@ - - - - Art Feed | denizk0461 - - -{#snippet pageButtons(currentIndex: number)} -
- {#if currentIndex == 1} -

x

- {:else} - < - {/if} - - {#each { length: data.maxPages }, index} - {index + 1} - {/each} - - {#if currentIndex == data.maxPages} -

x

- {:else} - > - {/if} -
-{/snippet} - - - - - {@render pageButtons(data.currentPage)} - -

Welcome to my (new) art feed! It is heavily inspired by DeathSurplus' art blog – definitely go check out his page!

- -

This page is intended to offer a shared space for all my projects without the need to create strictly-separated pages for each hobby. Some other pages on this website have been merged into this one; namely the "Small Projects" and "Drawing Gallery" pages, so don't be surprised if content from those pages shows up here.

- -

I'll add some more of my past projects, new projects, and an option to filter by project type soon™. Maybe I'll also split the content into pages, if I ever figure out how to do that.

- -

I MAY merge this with the Projects page, I've not yet decided.

- - - - {#each data.feedEntries as entry} -

{entry.title}

-

{entry.subtitle}

-

{entry.date}

- - {/each} - -
- - diff --git a/src/routes/feed/+page.ts b/src/routes/feed/+page.ts deleted file mode 100644 index 237b13f..0000000 --- a/src/routes/feed/+page.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { entries } from './feed'; - -interface FeedEntry { - content: any; - title: string; - subtitle: string; - date: string; -} - -let entriesPerPage = 8; - -export async function load({ params, url }) { - // Get page index - let pageIndex = Number(url.searchParams.get('p')); - if (pageIndex == 0) { - pageIndex = 1; - } - - // TODO check if index exceeds maximum permitted and redirect (to max page?) - - let feedEntries: FeedEntry[] = []; - let start = (pageIndex - 1) * entriesPerPage; - - for (let i = start; i < start + entriesPerPage; i += 1) { - // Stop iterating when end reached - if (i >= entries.length) { - break; - } - // 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; - - feedEntries.push({ - content: page.default, - title: md.title, - subtitle: md.subtitle, - date: md.date, - }); - } - - let currentPage = pageIndex; - let maxPages = Math.ceil(entries.length / entriesPerPage); - - return { - currentPage, - maxPages, - feedEntries, - }; -} \ No newline at end of file diff --git a/src/routes/feed/feed.ts b/src/routes/feed/feed.ts deleted file mode 100644 index 8a4d611..0000000 --- a/src/routes/feed/feed.ts +++ /dev/null @@ -1,8 +0,0 @@ -export let entries: string[] = [ - // 2026 - "misc/lightyears-font", - "drawings/firstmonth", - // 2024 - "electronics/3ds-usb-c", - "electronics/deej0461", -]; \ No newline at end of file diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte index b07aae0..e78ac40 100644 --- a/src/routes/projects/+page.svelte +++ b/src/routes/projects/+page.svelte @@ -36,33 +36,13 @@ bannerAlt="An upside-down New 3DS XL lying open on a desk with a small USB-C breakout board attached to it, and a USB-C cable plugged in. The 3DS is glowing to indicate that it is charging." subtitle="Things I have worked on" /> - +

Welcome to my (new) projects page! Here I show off all the things I have done. Projects are ordered reverse-chronologically and have some other neat information displayed. have fun browsing~!

- +

I'll add some more of my past projects, new projects, and an option to filter by project type soon™. Maybe I'll also split the content into pages.

- - - +
{#each projects as p} @@ -73,12 +53,22 @@ {#snippet project(p: Project)} {#if p.directLink} - {p.title} + + {@render projectContent(p)} + {:else} - {p.title} + + {@render projectContent(p)} + {/if} {/snippet} +{#snippet projectContent(p: Project)} +

{p.title}

+

{p.subtitle}

+

{p.date}

+{/snippet} +