Skip to content

PakkuDon/blog

Repository files navigation

Blog

Hosted at https://pakkudon.github.io/blog/

This blog was built using Hugo.

Development

Pre-requisites

  • Install hugo extended version (Application built using hugo v0.131.0, but may work with newer versions)

Running it locally

  1. Run hugo server.
  2. Visit http://localhost:1313/blog/ to view changes.

Adding new posts

  1. Run hugo new post/<date in YYYY-MM-DD>-<post slug>
  2. Edit new markdown file in content/post/<date in YYYY-MM-DD>-<post slug> directory

Publishing changes

Changes pushed to main are automatically deployed to Github Pages. This is done via a workflow defined in .github/workflows/hugo.yml.

Pull latest updates for theme

Themes are installed as git submodules. Run the following to pull in the latest commits for installed themes

git submodule foreach git pull origin master

Update Hugo version

  1. Download the latest available release from https://github.com/gohugoio/hugo/releases
  2. Install Hugo using your choice of package manager if required
  3. Update HUGO_VERSION in .github/workflows/hugo.yml to ensure CI uses same Hugo version as local environment
# Example
curl -LJO https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_0.131.0_linux-amd64.deb
sudo dpkg -i hugo_0.131.0_linux-amd64.deb
rm hugo_0.131.0_linux-amd64.deb

Alternatively, see Hugo's docs for other methods

About

Stuff and things. Not regularly updated

Resources

Stars

Watchers

Forks