ButterCMS Hugo Starter Project

This is a starter project for Hugo with integration of ButterCMS. This includes a posts generator written in Go which uses the ButterCMS SDK for Go to retrieve posts from ButterCMS.

Important Notice

This project was created as an example use case of ButterCMS in conjunction with Hugo, and will not be actively maintained.

If you’re interested in exploring the best, most up-to-date way to integrate Butter into Hugo, you can check out the following resources:

Starter Projects

The following turn-key starters are fully integrated with dynamic sample content from your ButterCMS account, including main menu, pages, blog posts, categories, and tags, all with a beautiful, custom theme with already-implemented search functionality. All of the included sample content is automatically created in your account dashboard when you sign up for a free trial of ButterCMS.

Other Resources

Installation

  1. Install Hugo.

    You can check on how to install Hugo on your operating system here

  2. Install Go

    You can check on how to install Go compiler here

Setup

You should replace YOUR_AUTH_TOKEN in go/generate.go with your auth token provided by ButterCMS.

Usage

  1. Run the generate script to retrieve all of the posts from ButterCMS
go run go/generate.go
  1. Check the posts if they are loaded into HUGO by running
hugo serve

Web Server will be available at http://localhost:1313/