Search code examples
hugo

How to build single page site from Markdown?


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.


Solution

  • 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.