Source code and content for my scott.mebberson.codes website.
- Clone this repository.
- Execute
yarn
to install dependencies.
To develop the website (including authoring content):
- Execute
yarn dev
. - Visit http://localhost:4040.
If you'd like to test the production version:
- Execute
yarn build && yarn export
. - Execute
yarn serve
. - Visit http://localhost:4040.
To add more content, follow the steps for development, then:
- Add an entry to
posts.js
. - Create a page in
pages/post
with the same name as theslug
fromposts.js
. - Author the page as required.
To publish new content simply push to master
. The GitHub Actions within this repository will kick-in and build, export and commit on the gh-pages
branch.
See Hosting for more information.
This website is hosted entirely on GitHub Pages, fronted by the awesome Varnish Cache. It works like this:
- The
out
directory is a Git Worktree aliased to thegh-pages
branch. - Some GitHub Actions will build and export a new version of the website.
- A final GitHub Action will commit the contents of the out directory to the
gh-pages
branch.
This results in GitHub publishing the last version of the website 🌮.
The content of this project itself is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International license, and the underlying source code used to format and display that content is licensed under the GNU General Public License v3.0.