Hugo Book Amplify Template screenshot

Hugo Book Amplify Template

Author Avatar Theme by Hervenivon
Updated: 5 Feb 2020
6 Stars

The hugo static site generator quickstart with the "Book" template hosted on AWS Amplify

Categories

Overview

The repository “hugo-book-amplify-template” is a quickstart for the Hugo static site generator using the “Book” template and hosted on AWS Amplify. It is based on several sources including the Hugo Book theme, Hugo Quickstart, and AWS Amplify Console. The AWS Amplify Console is used to deploy the static website, automatically handling cache invalidation and providing capabilities to simplify the website lifecycle and enforce best practices.

Features

  • Host your static website on AWS Amplify
  • Leverages Amazon S3 static hosting and Amazon CloudFront for asset distribution
  • Automatic cache invalidation when pushing new versions of the website to the repository

Installation

To install the theme and deploy the static website using the AWS Amplify Console, follow these steps:

  1. Launch the AWS Amplify Console dashboard.
  2. Click on “Get Started” under “Deploy with Amplify Console”.
  3. Select the desired repository service provider (e.g., GitHub) and authorize AWS Amplify to access your account.
  4. Select the repository and branch of your fork.
  5. Leave the default settings on the “Configure build settings” page and select “Next”.
  6. Review the settings and select “Save and deploy”.
  7. Wait for the resources to be created and the code to be deployed.
  8. Click on the site image to open your static website in your browser.

To see the impact of your content changes locally, execute the following command in your terminal with the Hugo prerequisites applied:

hugo server

Summary

The “hugo-book-amplify-template” repository provides a quickstart for creating a static website using the Hugo “Book” template and deploying it with the AWS Amplify Console. The Amplify Console simplifies the deployment process and offers capabilities for continuous integration and delivery. Additionally, the Amplify Console can be used to build full stack serverless applications.