HP.
HP.

Reputation: 19896

Use Hugo to render html files

I am using Hugo http://hugo.spf13.com/overview/introduction to render a folder with html/css/js files as localhost in my laptop.

I have html files in /content and all js/css/img files in /static folder

This is content in config.toml

baseurl = "http://localhost"
contentdir = "content"
languageCode = "en-us"
title = "my new hugo site"

I did hugo server and it rendered /public folder just fine. But all .html files now turning into .xml files and I cannot open them in browser like http://localhost:1313/index.html or so.

What did I do wrong?

Upvotes: 2

Views: 4783

Answers (2)

Angelo Angeles
Angelo Angeles

Reputation: 991

First you have to clone themes from github.com/spf13/hugoThemes

In my case I did'nt have git install in my test machine here are the things that I did:

1) Download theme from github.com/spf13/hugoThemes

2) Extract theme to /path/themes

3) Run hugo --theme='themename'

Upvotes: 1

chaseadamsio
chaseadamsio

Reputation: 894

Did you setup a theme yet? Without a theme, Hugo will render files as XML, if you read the documentation on themes, that should give you what you need.

Upvotes: 1

Related Questions