Skip to content

michael-valdron/michael-valdron.github.io

Repository files navigation

Web Portfolio

Go 1.21 Hugo Latest GPLv3 License Build and Deploy

My personal portfolio website.

Hugo

This version of the website is generated using the Hugo static generator.

Install Hugo CLI

Hugo CLI can be installed by running the following:

git clone https://github.com/gohugoio/hugo.git
cd hugo
go install

Development

Hugo CLI

hugo server -D

odo v3

odo dev 

By default, the baseURL for Hugo is set to localhost:20001. If you are running more than one components at once this will need to be changed. For example, if the address binding will be localhost:20002 -> 1313 then run the following:

odo dev --var baseURL=localhost:20002

Publishing

Run hugo --minify --baseURL=<base-url-of-web-server>, then copy all content generated under public to any target web directory of a web server.

To test out that this content is viewable from a web server, one can use hugo --minify --baseURL=http://localhost:8000 followed by python -m http.server --directory ./public.

Other Versions