I'm building a Jekyll site made of static pages (e.g. nothing in the _posts
directory), and rather than keeping each page in the root directory, I'd like to keep it in a custom pages
directory (for organization's sake).
However, I don't want this structure reflected in my URLs, so in my _config.yml
I have:
permalink: /:title
With this configuration, my desired URL would be site.com/pagename
, but I don't get a rendered page unless I hit site.com/pages/pagename.html
.
Could anyone help me configure my build to achieve the former? Thanks!