rnd's website logobuilding a static website

If you take a look at the Makefile in the source code repository of this website, you'll find that it's relatively simple. Almost all of the heavy lifting is performed by two tools:

  • "theme" from the "discount" Markdown parser

  • "cpp", the C preprocessor

"theme" transforms pages, written in Markdown with an occasional piece of raw HTML, into full-fledged webpages with the use of a simple template system. The only additional rule is "style", inserted so that individual pages could have their own CSS styles if they need it.

The C preprocessor, so far, is only used on the CSS style. It uses a bunch of good old #define macros to predefine colors, so that changing the website's color palette is easier.

The blog pages use an additional script that reads the contents of each page, finds their date (usually the 3rd line of the file prefixed with a % sign) and contents and, if there's also a <!-- cut --> tag, uses it to make a description of each post.

In addition, the dc directory contains versions of every page compiled to use a limited subset of HTML/CSS -- which theoretically would work on web browsers supplied with the Sega Dreamcast (sadly, it doesn't because of HTTPS issues).

Hosted by Neocities Follow me on Mastodon This page made with Vim SimpleJPC-16 Best viewed in Firefox Alpine Linux The Dreamcast Junkyard Dreamcast Live Blaseball F-Droid jan li lukin e lipu ni lon tenpo mute Jet Set Radio Live Trans Rights Now!
Website created and updated by /dev/urandom. Source code available on the GitLab page.