Building a site without a theme - blank home page

Hi,
I’ve started a new version of this project locally, without using the /themes directory, with all my stuff in the root /layouts directory.

No errors when running hugo server but the index page is blank. Any idea where my mistake is?

Here’s my site structure:

│ ── archetypes
│ └── default.md
├── assets
│ ├── js
│ └── sass
├── config.toml
├── content
│ └── _index.md
├── data
├── layouts
│ ├── content
│ │ ├── 404.html
│ │ ├── _default
│ │ │ ├── baseof.html
│ │ │ ├── list.html
│ │ │ └── single.html
│ │ ├── partials
│ │ │ ├── footer.html
│ │ │ ├── head.html
│ │ │ └── header.html
│ │ └── robots.txt
│ └── index.html
├── resources
│ └── _gen
│ ├── assets
│ └── images
├── static
└── themes

and here’s my config.toml file:

baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
relativeURLs = true
enableRobotsTXT = true
[params]
disallow_search_engines = false # set robots.txt to disallow everything

You appear to have an extra directory in layouts/content/. For example, mine looks like:

layouts/
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── home.html

Thanks! I messed up setting up the initial directory structure. that fixed it :slight_smile:

1 Like