2024-12-24 / uncategorized

Yet another website redesign

December 2024 Website Revamp

The primary motivation to rework my website (again) was to improve how I store and organize my articles.

Previously, I wrote all my articles directly into my repo, into fixed categories, with the images haphazardly stored for each article. This was okay for a few years, but over time I wanted a better integration with my personal note system rather than needing to do a dance of copy-pasting and reformatting to publish something.

The old website is still up at old.kxvin.com. If I ever redo my website again, expect the one referenced in this article to go to the titular old2.kxvin.com.

The Result

website_20241224191902.png

The Process

The below scripts are invoked from my package.json.

1. Copy

Copy the files from my local Obsidian notes to the repo:

$ rsync -av --delete ~/Everything/Public/ src/content
# -a or --archive to preverse file data
# -v or --verbose to log during copying

2. Preprocess

$ node preprocess.mjs

Even though the Obsidian notes are written in Markdown, they aren't fully ready to be rendered by 11ty. We need to do the following:

3. Generate (let 11ty do it's thing!)

$ eleventy --serve
# --serve spins up a webserver for local development

Then we just pass the reformatted notes into 11ty and let it work its magic. All of the styling. sorting, image processing, and pagination logic happens at this stage.

Todo

There's still a few improvements that can be made at the time of writing this. Maybe by the time you're reading this, I'll have done some of the below: