This repository offers an example site for Hugo and also it provides the default content for demos hosted on the Hugo Themes Showcase.
-
Clone this repository
git clone https://github.com/gohugoio/hugoBasicExample.git cd hugoBasicExample
-
Clone the theme you want to test into the
themes
directory. If you want to test all Hugo Themes then follow the instructions provided heregit -C themes clone URL_TO_YOUR_THEMES_REPOSITORY
-
Run Hugo and select the theme of your choosing
hugo server -t YOURTHEME
You should now be able to browse the example site with your theme on localhost.
The output of the last command will tell you the exact url, probably http://localhost:1313/
.
The /content/
-directory of this repository contains the following:
- A section called
/post/
with sample markdown content. - A headless bundle called
homepage
that you may want to use for single page applications. You can find instructions about headless bundles over here. - An
about.md
that is intended to provide the/about/
page for a theme demo.
If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the Hugo Themes respository.