Source code for my Neocities page#
I decided to make my Neocities page with a static site generator and since I feel most at home in the Deno ecosystem, I decided to use Lume.
Installation#
Install Deno, then install the dependencies by running:
deno install
Usage#
A few tasks are defined in deno.json:
To build the static files, use:
deno task lume
To serve your static files to a live server, use:
deno task lume -s
To deploy to Neocities, use:
deno task deploy
Don't forget to create a .env file with the environment variables NEOCITIES_SITE_NAME and NEOCITIES_PASSWORD!
Tangled CI workflow#
I use a Tangled workflow to deploy my site to Neocities every time I push to Tangled. Read more about CI runners here.
If you want to do that as well, go to your repo settings, choose a spindle in Pipelines and set NEOCITIES_SITE_NAME and NEOCITIES_PASSWORD as secrets.
If your project doesn't necessitate a build step, simply remove the step in the workflow.