Hello, future self.
I'm documenting how to update and deploy this website in case you haven't done it in a while and forgot how to do it.
Best,
-- Past self
I'm using eleventy to generate a static site from markdown files. It's installed locally:
npm i --save-dev @11ty/eleventy
The eleventy command should always be invoked with npx
like so:
npx @11ty/eleventy <command>
Raw content sources live in markdown files under the ./content
directory.
Layouts go in ./content/_includes
and are written in nunjucks.
To build the site, navigate to the root directory and use eleventy:
npx @11ty/eleventy --input=./content
Output will go in the ./_site
directory.
You can preview locally with the --serve
option:
npx @11ty/eleventy --input=./content --serve
As long as a layout with a <body>
tag is used, there's live preview.
I'm hosting this on netlify.