- HTML 42.3%
- CSS 34.3%
- Shell 10.4%
- JavaScript 7.6%
- Makefile 5.4%
maze88.dev Static site & generator
Overview
This repository contains the sources and static files (on branches main and pages, respectfully) for generating my website/blog https://maze88.dev using my SSG. Deployment is with Codeberg pages.
Input preparation
-
All content should be written in markdown and put in the
src/directory.Note: Do not create a
src/blog.mdfile, since the build will overwrite it when generating the blog index. -
Blog posts should be placed in the
src/posts/directory, with filenames that are arranged chronologically by prefix (using numbers and dashes only), such as:00-writing-markdown.md 01-generating-html.mdor
2022年01月11日-writing-markdown.md 2022年02月22日-generating-html.md -
Each post should contain the following YAML in its frontmatter:
---title:Generating HTML with Pandocdate:2022年03月11日author:Michael Zeevi # optionalkeywords:# optional- markdown- html--- -
Additional resources and media (CSS, images, PGP public key, etc.) can be put in the
assets/directory, which will be copied to_dist/assets/during build.
Usage
Local development and testing
-
Build by running
make(which wraps the./build.shscript) - this will clean and then produce the output in the directory_dist/. -
One can test by opening the output locally in their web browser.
Publishing (deploying)
-
Run
make publish- this will first build and then commit & push the output to thepagesbranch.Note: The
pagesbranch must pre-exist in the remote repository. -
One can test by going to the website with their browser.
Note: A
.domainsfile must also exist on thepagesbranch.