Based on https://gohugo.io/getting-started/quick-start/
- Install hugo https://gohugo.io/installation/
- Go to https://themes.gohugo.io/ and pick a theme, e.g.
Terminal
- Initialise a new site:
hugo new site my-new-site cd my-new-site
- Add a theme, either by downloading it, or by adding a Git submodule:
wget https://github.com/panr/hugo-theme-terminal/archive/refs/heads/master.zip unzip master.zip mv hugo-theme-terminal-master themes/terminal rm master.zip
- Configure hugo to use the theme
echo "theme = 'terminal'" >> hugo.toml
- Build the website, files will be placed under the
public/
folderhugo build
- Alternatively run a live server that automatically rebuilds the website when files are changed
hugo server
- Now create some content. This will create a new page
content/posts/my-first-post.md
with some predefined metadata, but it's easy to create it yourself. If you are runninghugo server
the browser view should automatically updatehugo new content content/posts/my-first-post.md
- Now add some content to the above page.
echo '## Hello from the cHICkens!' >> content/posts/my-first-post.md
- Now modify the theme, e.g. edit [
my-new-site/themes/terminal/layouts/_default/single.html](my-new-site/themes/terminal/layouts/_default/single.html) and insert some text inside the
{{ main }}` blocksed -i '' '1a\ ππππππππππ' themes/terminal/layouts/_default/single.html