Skip to content

Huguette is a simple boilerplate theme for Hugo with optional support for any classless css and Netlify CMS.

License

Notifications You must be signed in to change notification settings

cathelijne/hugo-theme-huguette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huguette - a theme for Hugo

TLDR;

git submodule add https://github.com/cathelijne/hugo-theme-huguette.git themes/huguette
echo "theme = 'huguette'" >> config.toml

Huguette theme thumbnail

See it in action

Here's an example site to see what Huguette looks like.

About this theme

I am a cloud engineer by day, and a hobbyist website builder whenever I have the time. I like to try lots of different technologies, just for the fun of it. Often, I miss a very simple boilerplate theme that just demonstrates what a CMS or site builder can do. Either you have to take your pick from the many (and often excellent!) beautiful themes with lots of bells and whistles that obscure a bit how everything works, or you have to start from scratch.

When I ran into Hugo, I decided to actually make such a simple theme. Without bells an whistles, no javascript, no npm or yarn needed to make changes to the theme. Just plain HTML. And to make it look better, I included classless.css. But using that is entirely optional (it does look good though!). I included a few, just enough, Hugo partials in the theme to give you an idea of what they can do, nothing more. I really had to sit on my hands there :)

One-click install with NetlifyCMS

This repository holds the theme only so you can install it to any existing site. But if you're just starting with Hugo and want a one-click site install with the theme, the css and Netlify CMS enabled and hosted on Netlify, you can use the button below. Jou can also have a look at the the example site repository or the example site itself (you will find the one click install there too).

Deploy with Netlify

If you want just the theme, read on.

Theme Installation

Install the theme like any other theme:

git submodule add https://github.com/cathelijne/hugo-theme-huguette.git themes/huguette
echo "theme = 'huguette'" >> config.toml

Enable the included Classless CSS:

echo '[params]
  css = true' >> config.toml

And copy the static/css folder included in this theme to the static folder in the root of your site:

mkdir static
cp -r themes/huguette/static/css static

Enable Netlify CMS

To enable Netlify CMS, enable the inclusion of the CMS JavaScript by adding netlifycms = true to the params section of your config.toml so it looks like this:

[params]
  css = true
  netlifycms = true

Copy the static/admin folder to the static folder in the root of your site:

cp -r themes/huguette/static/admin static

You will need to edit config.yml in admin/static to match your site. Explaining how is outside of the scope if this installation doc, but you can use Netlify CMS's documentation: instructions for adding NetlifyCMS to Hugo.

Thanks to

See my other resources for Hugo

  • A gist with a few snippets to use in templates
  • Huguette, a boilerplate theme to get you started and nothing more <-- That's this repo!
  • An All-in-one, one-click Netlify install of Hugo with Huguette as a theme
  • Dummy Content for Hugo for Hugo: 100 pages in 5 sections with categories and tags

About

Huguette is a simple boilerplate theme for Hugo with optional support for any classless css and Netlify CMS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published