pages
minimal static site generator for a personal site. built on deno, markdown, and a tiny amount of custom glue.
source: https://github.com/rnbguy/pages
quick start
no need to clone the tool repo.
create your site
deno run -A jsr:@rnbguy/pages init my-site cd my-sitethis creates
my-site/with git, a startersrc/index.md, andconfig.yaml.update config
edit
config.yamlwith your details:title: your site name url: https://yourusername.github.io/your-repo github: yourusername # optional: add twitter, image, etc.Note
if this repo is your
username.github.iorepository, useusername.github.ioas your urlbuild and preview
deno run -A jsr:@rnbguy/pages build deno run -A jsr:@rnbguy/pages servedeploy to github pages
commit and push your site directory. then go to your repo on github. click on "settings" tab and then "pages", and then set "source" to "github actions".
see deployment for a full github actions workflow.
Note
if you intend to (or already) use a custom domain for github pages, use
thatwebsite.com/repo-nameor justthatwebsite.comaccordingly
install globally
to avoid typing deno run -A jsr:@rnbguy/pages every time, install it as a
global command:
deno install -g -A jsr:@rnbguy/pagesthen use pages directly:
pages init my-site
cd my-site
pages build
pages serveto update:
deno install -g -A -rf jsr:@rnbguy/pagessee deno install for setting up your PATH.
commands
pages init <name> # create a new site project
pages build # generate the site
pages serve # local preview server
pages new # scaffold a new page
pages build --help # see all optionsstructure
after running init, your site directory looks like:
src/ # markdown + static assets (default, configurable)
dist/ # build output (after build)
config.yaml # site settings
.gitignore # ignores dist/Note
this tool's own repo uses src: pages in its config.yaml because src/
contains the deno source code. the default source directory for users is
src/.
learn more
- features - what pages can do
- markdown - frontmatter, mermaid, code blocks, alerts
- configuration - config.yaml reference
- deployment - github pages setup
Warning
this project contains code generated by llm models.