Skip to content

nelemansc/hugo-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://www.cassidynelemans.com is a static site generated by Hugo that is hosted in an S3 bucket and served by a Cloudfront distribution.

Local environment setup

  • Install hugo via brew

brew install hugo

  • Clone the repo onto your local machine

git clone git@github.com:nelemansc/cassidynelemans.com.git

  • cd to the folder and make modifications. The theme used lives in the themes/ directory.

  • run hugo server -D to generate the site via hugo emulation. The site can be accessed at http://localhost:1313. If all looks good, commit your changes and push.

The Github Action associated with the repo does the following:

  • checks out the repo
  • Runs hugo -D to generate the static assets
  • Uploads the static assets to S3
  • Invalidates the Cloudfront cache so the newest version is served up by the CDN

The following secrets need to be configured in the repository settings:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION
  • AWS_S3_BUCKET
  • DISTRIBUTION_ID (the Cloudfront distribution ID)

About

hugo-static-site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published