How do I serve a Hugo theme exampleSite?

Viewed 9

I'm coming from using Jekyll as a Static Site Generator. Content and themes are normally kept in the same directory/git repo.

I'm trying to set up a Hugo site, using the bare-bones theme Huog Xmin. It contains the standard directory exampleSite.

How can I serve the exampleSite with the theme using Hugo (locally)? after I:

git clone git@github.com:yihui/hugo-xmin.git
cd hugo-xmin
1 Answers

Go into the exampleSite and serve with passing the parent directory as an argument:

cd exampleSite
hugo server --themesDir ../..
Related