Skip to content

jontyq/enthusiastic-sloth

Repository files navigation

✨ enthusiastic-sloth ✨

This is a Hugo site using Contentful as a CMS. It was created with Stackbit in under a minute.

You can create a site just like this one, or explore some variations. How about a different:

🎨  Look
✏️  CMS
⚙️  Static site generator

Develop Locally

  1. Follow the installation guide to install Hugo

  2. This theme uses Hugo Pipes to handle SCSS – please ensure you have the Hugo extended version installed:

     hugo version
    
  3. Get "Content Delivery API - access token" from your Contentful project space

  4. Assign this access token to the CONTENTFUL_ACCESS_TOKEN environment variable:

     export CONTENTFUL_ACCESS_TOKEN={contentful_delivery_api_access_token}
    
  5. Assign your contentful space id to the CONTENTFUL_SPACE_ID environment variable:

     export CONTENTFUL_SPACE_ID={contentful_space_id}
    
  6. Fetch the content from Contentful:

     npx @stackbit/contentful-pull --ssg hugo --contentful-space-id $CONTENTFUL_SPACE_ID --contentful-access-token $CONTENTFUL_ACCESS_TOKEN
    
  7. Start the Hugo development server:

     hugo server
    
  8. Open http://localhost:1313/ in the browser

  9. 🎉

Editing Content

To start editing your site, you can use the Contentful interface at https://app.contentful.com/spaces/3gkhnkre243z.

Alternatively, you can use the free on-page editing experience provided by the Stackbit Studio.

Here's a few resources to get you started:

If you need a hand, make sure to check the Stackbit support page.

Colophon

Generated at 2021-07-20T13:44:58.542Z by Stackbit version 0.3.53.