Hugo
Static site generator, takes markdown pages and generates site, serve from a s3 bucket wrapped with cloud front.
Some notes from setting it up (mostly for myself in case I have to do this again):
- Markdown: https://www.markdownguide.org/tools/hugo/
- S3/CloudFront instructions: https://www.davidbaumgold.com/tutorials/host-static-site-aws-s3-cloudfront/
- NOTE: Had to re-generate certificate in
us-east-1
(not my default) before cloudfront could find it - The bucket policy was necessary or once you re-upload something it reset
- NOTE: Had to re-generate certificate in
- Deploying from Hugo: https://gohugo.io/hosting-and-deployment/hugo-deploy/
- NOTE: Can set the
AWS_PROFILE
env variable to select profile if you use multiple accounts in~/.aws/credentials
- NOTE: Can set the
- Can set the
googleAnalytics
key in main config.toml to get analytics https://gohugo.io/templates/internal/ - Seems configs are pretty specific per theme. e.g. where to set social accounts is not standard. I had to choose a theme compatible with old versions of hugo due to .. reasons.
- Also pulled in https://purecss.io/grids/ and this short code to do grids of images: http://yoshiharuyamashita.com/post/hugo-shortcode-to-show-multiple-images/ To add css put in
static/css
and include as/css/...
To include extra css file, add the link tolayouts/partials/head_custom.html