This is a very simple boilerplate for a Hugo theme. It contains useful blocks and partials for the most important page elements.
The theme is very simple and contains no styling. It's meant as a starting point for building your own theme on top of it. The theme provides the following features:
- Templates for pages, blog posts and sections
- Post categories
- Navigation (with CSS class for highlighting the current page)
- RSS feeds
- 404 page (may require additional setup, depending on your hosting provider)
Make sure you have Hugo installed.
- Initialize a new site with Hugo:
hugo new site my-site
- Navigate into the project directory:
cd my-site
- Create a new Git repository:
git init
- Download Hugo Starter Theme:
git submodule add https://github.com/samuelmeuli/hugo-starter-theme themes/hugo-starter-theme
- Activate the theme:
echo 'theme = "hugo-starter-theme"' >> config.toml
- Import the theme's sample content:
cp -r themes/hugo-starter-theme/example-site/content/ content/
- Run Hugo in development mode:
hugo server --buildDrafts --buildFuture --port 3000
- Visit http://localhost:3000 and enjoy your new website!
An example site building on this theme can be found here.
Suggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request.