Welcome! This is a personal static blog written using the hugo framework.
The project is structured as follows
archetypes
- templates for new posts (posts/default.md
is used for everything created viahugo new posts/X.md
)content
- Markdown files used for generating blog post pagesdata
- stored variables to access in your theme's HTML files (see data templates docs)layouts
- HTML templates for non-blog post pagesstatic
- static assets (e.g. images, JS, CSS)themes
- the theme used in this project and its assetsstraygar.github.io
- submodule pointing to the github pages repo. This is the destination for hugo's generated website.
- Generate a new content .md file:
hugo new posts/<date>-post-name.md
- Write the blog post
- Test how it looks:
hugo server
- Once you're happy - publish it:
./publish.sh "Your commit message"
- This does a few things behind the scenes:
- Generates the static website:
hugo
- Commits and pushes static assets in
straygar.github.io
- Commits and pushes hugo changes in this repo
- Generates the static website:
Happy writing! 🔥