This is a sample hugo website for a duke Class
This website was created using [Hugo] (https://gohugo.io/)
-
Create an AWS Cloud9 environment
-
Change the inbound rules in AWS Cloud9 to allow outside traffic i o/releases
-
Get Hugo and put the program in the path of AWS Cloud9 https://github.com/gohugoio/hug
-
Follow the hugo commands to create a new website
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo server
-
Create an AWS S3 bucket
-
Check the static website hosting option
-
Download the contents of the public folder
-
Upload the contents of the public folder in Objects in the AWS S3 bucket
-
Turn off the option Block all public access in the AWS S3 bucket
-
Add a bucket policy:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::hugowebsiteduke/" } ] }