Skip to content

A quick way to spin up a blog using Hugo with the Papermod theme, with NetlifyCMS for post editing and Netlify Identity for login.

License

Notifications You must be signed in to change notification settings

cjreinhardt/Hugo-PaperMod-NetlifyCMS-Starter

Repository files navigation

Hugo-PaperMod-NetlifyCMS-Starter

This repository should help you get started with using Hugo and the Papermod theme quickly on Netlify, NetlifyCMS and Netlify Identity. It's based on the hugo-Papermod example site, with NetlifyCMS support added in the /static/admin directory.

Install

Here's the quickest way to get started. Some of the steps below may vary depending on your setup, but this is more or less what I did when setting this up:

  1. Use the deploy to Netlify button below. This will clone this repository into your Github account, and setup continuous integration/deployment through your Netlify account:

Deploy to Netlify

  1. Open a terminal or command prompt and clone your newly created repository onto your local machine
git clone https://github.com/YourUsername/YourNewRepositoryname.git
  1. If you don't already have Hugo installed, now's the time to make that happen! Read the Hugo install docs here.

  2. Once Hugo is installed go to your repository directory on your local machine. Edit config.yml in the root directory. Here you can change alot of the content displayed by Papermod (like the text on the homepage), and also adjust a ton of options. Check out the Papermod docs here for more info).

  3. When you're done editing start Hugo with this command:

hugo server -D
  1. You should now be able to see your site! Hugo will let you know where you can view your site in the terminal (it's usually at localhost:1313)

  2. Finish getting everything in config.yml setup to your liking.

  3. When you're ready you'll want to add/stage all your changes, commit your changes to your local repository, then push your changes back to your Github repository. You may need to setup a personal access token or ssh key. Once you push your changes to Github, Netlify will see that you've updated your repository and push all your changes to your public site. Voila! 🎉

git add -A
git commit -m "Add a useful commit message"
git push origin main
  1. Going forward, you can access NetlifyCMS from /admin to edit or add posts. You may need to do additional Netlify Identitiy setup for CMS login to work. Read more about this here. Usually you have to invite yourself as a user from the 'Identity' tab at Netlfiy, and enable the git-gateway under Identity -> Services.

More Info on Hugo Papermod

Visit the Hugo Papermod Github repo => hugo-Papermod at Github

Read the Hugo Papermod Wiki => hugo-PaperMod - Installation

Find out more about Hugo here => https://gohugo.io

About

A quick way to spin up a blog using Hugo with the Papermod theme, with NetlifyCMS for post editing and Netlify Identity for login.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published