Work in progress personal website; proof of concept static site generator using dry-system, rom-rb, and dry-view
This is my personal home page, implemented as a Hanami app extended to produce static content for deployment.
Run ./bin/setup
to set up the application.
Review .env
and adjust the settings as required.
Run ./bin/build
to build the site. This will empty the build/
directory and then repopulate it
with a new copy of the site's files.
I wanted a static site generator that would allow me to work in the same way I do when building a typical server-side web application. So rather than building within the confines of a static site generation framework, I wanted an ordinary Ruby app app that just so happens to export a static site as part of its behavior.
This means:
This is a typical Hanami app, with a couple of additions:
source/
by Site::Prepare
Site::Generate
that uses these routes and their matching actions to output static content#each
method on dynamic actions that outputs their possible slugs, used by the abovebin/build
script that is run on deploy to create the static siteAll code is MIT licensed. All site content (in app/assets/
and source/
) is copyright Tim Riley,
all rights reserved.