brew install hugo
hugo new site flmmartins.github.io
git submodule add https://github.com/tom2almighty/hugo-narrow.git themes/hugo-narrow
echo "theme = 'hugo-narrow'" >> hugo.toml
hugo server
- Change the Source to GitHub Actions
- In your hugo.yml configuration, change the location of the image cache to the cacheDir
After everything is configured, when you push to main it will automatically deploy
Although this works, customization of theme proved to be hard
How to create repo
Install jekyl PS: Had to install ruby with SSL:
ruby-install ruby 3.4.1 -- \
--with-openssl-dir="$(brew --prefix openssl@3)"
After installing jekyll:
- Run:
jekyll new --skip-bundle . - Change _config.yaml and Gemfile by reading the comment lines
- Run:
bundle install - Put Gemfile.lock on gitignore
- Run code locally
bundle exec jekyll serve
Push to main