Personal blog / developer notes, hosted on GitHub Pages. Built with Hugo and the Maverick theme.
- Hugo (extended version recommended), e.g. 0.135+
- Git (the theme is a submodule)
brew install hugoCheck:
hugo version-
Clone the repo (with the theme submodule):
git clone --recurse-submodules https://github.com/hirisave/pages.git cd pagesIf you already cloned without submodules:
git submodule update --init --recursive
-
Start the dev server:
hugo server -D
-Dincludes draft posts. Omit it to hide drafts. -
Open in the browser:
- Site: http://localhost:1313/pages/
- Posts: http://localhost:1313/pages/posts/
- About: http://localhost:1313/pages/about/
Hugo will use a base URL for localhost, so links stay on your machine. The server watches for changes and reloads automatically.
-
Stop the server:
Ctrl+Cin the terminal.
To generate the static site (e.g. for GitHub Pages):
hugoOutput goes to the public/ directory. The repo’s GitHub Action (see .github/workflows/deploy.yml) builds from this and deploys to GitHub Pages.
| Path | Purpose |
|---|---|
content/ |
Markdown content (home, about, posts) |
content/posts/ |
Blog posts |
config.toml |
Site config (title, baseURL, menu) |
themes/maverick/ |
Theme (submodule); we override layouts/partials and _extra.scss here |
public/ |
Generated site (gitignored or deployed) |
New posts: add a .md file under content/posts/ with front matter (title, date, tags).