- HTML 42.3%
- CSS 34.3%
- Shell 10.4%
- JavaScript 7.6%
- Makefile 5.4%
|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Michael Zeevi <[email protected]> |
||
|---|---|---|
| assets | ||
| src | ||
| template | ||
| .gitignore | ||
| .woodpecker.yaml | ||
| build.sh | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
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 Pandoc date: 2022-03-11 author: Michael Zeevi # optional keywords: # 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.