Reputation: 137534
Hugo is for people building a blog, company site, portfolio, tumblog, documentation, single page site or a site with thousands of pages.
http://gohugo.io/overview/introduction/
I'd like to make a single page site. My content is written in Markdown index.md
. How do I build it?
It's necessary to build with Hugo (rather than pandoc) because I want to use its csv templating feature http://gohugo.io/extras/dynamiccontent/
I tried hugo new
to create a blank site. If I create _layouts/index.html
then hugo server
will show that. But I want to write content in Markdown.
Upvotes: 13
Views: 5021
Reputation: 6207
As of Hugo 0.18, this is now possible by creating a content/_index.md
file, if the theme you are using supports it. You can create this file with the command hugo new _index.md
. See the Hugo docs for more details.
Upvotes: 7
Reputation: 137534
Just write a post example.md
as usual, Hugo will build it public/example/index.html
. Then rather than push public
to your web host, publish public/example
. Voila, single page site.
Upvotes: 2
Reputation: 334
the hugo quickstart should have everything you need to get started, including adding markdown posts. Specifically, hugo new POSTNAME.md
will create a markdown post with proper header at content/POSTNAME.md
.
Upvotes: 1