Minimum requirements for url rendering

I am putting together my first hugo site.

I have:

  • a theme imported as git submodule
  • a content directory
    – content/foo/
    – content/foo/bar.md
    – content/foo/_index.md
  • a layout directory
    – layouts/foo
    – layouts/foo/list.html
    – layouts/foo/single.html

What needs to go right to make http://hostname:port/foo/bar/ render?

If it does not go right, how do I discover what I messed up along the way?

Thanks

When you run hugo server what does it show when you run it with the --verbose switch?

This part of the docs might help:

Yup:

LOG: 2017/12/29 20:20:06 5 regular pages created
LOG: 2017/12/29 20:20:06 12 other pages created
LOG: 2017/12/29 20:20:06 0 non-page files copied
LOG: 2017/12/29 20:20:06 0 paginator pages created
LOG: 2017/12/29 20:20:06 0 tags created
LOG: 2017/12/29 20:20:06 0 categories created
LOG: 2017/12/29 20:20:06 total in 4 ms
WARN 2017/12/29 20:20:06 Skip dataDir: lstat /Users/jason/scratch/robotrobot.io/data: no such file or directory
WARN 2017/12/29 20:20:06 Skip i18nDir: lstat /Users/jason/scratch/robotrobot.io/i18n: no such file or directory
WARN 2017/12/29 20:20:06 Skip staticDir: lstat /Users/jason/scratch/robotrobot.io/themes/forty/static/: no such file or directory

You ask too general a question. The answer to that question is here: https://gohugo.io/

Read and understand the getting started sections. Test the quick start. Look at some example sites.

If you have specific problems, create another thread.