Skip to content

This is a sample hugo website for a duke Class

Notifications You must be signed in to change notification settings

kalilamali/hugoforduke17

 
 

Repository files navigation

hugoforduke17

This is a sample hugo website for a duke Class

This website was created using [Hugo] (https://gohugo.io/)

  1. Create an AWS Cloud9 environment

  2. Change the inbound rules in AWS Cloud9 to allow outside traffic iinbound_rules_aws o/releases

  3. Get Hugo and put the program in the path of AWS Cloud9 https://github.com/gohugoio/hug

  4. 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
  1. Create an AWS S3 bucket

  2. Check the static website hosting option

  3. Download the contents of the public folder

  4. Upload the contents of the public folder in Objects in the AWS S3 bucket

  5. Turn off the option Block all public access in the AWS S3 bucket

  6. Add a bucket policy:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::hugowebsiteduke/" } ] }

  1. Find the link to the website in Properties in the AWS S3 bucket hugo_website

  2. DONE! :)

Releases

No releases published

Packages

No packages published