.Site.Sections returns an empty list

I just started learning Hugo. I have the following in my layouts/index.html file.

<!DOCTYPE html>
        <title>{{ .Title }}</title>
        {{ range .Site.Sections }}
        <div> {{.Title}} </div>
        {{ end }}

But .Site.Sections returns nothing despite there being directories inside content.

├── posts
│   └── your-post-title.md
└── publications
    └── list.md

Perhaps you need to set draft to false in your content files?

Thanks a ton! Works like a charm.