Lumia Aya

Home About Gopher

How Lumia Aya is Generated

The majority of the site is written in markdown in a plain old text editor. I arrange the markdown documents in a staging folder, the same way they will be arranged on the web server.

To convert them to HTML, I use lowdown. It’s pretty simple to loop through all the markdown files in the staging area and convert them, but just doing that alone produces plain HTML files with no headers or footers, and no styling.

Since every page uses the same header and footer, I just made templates for those that get concatenated before and after the converted markdown files. Since I want up-to-date dates in the footer, I also pass all HTML files through sed to convert the date placeholder text to the current date and year.

All relevant files are then copied from the staging folder into a “root” folder, and that’s the folder that gets uploaded to the server. I just use Neocities’ CLI tool for that.