statamic / ssg

The official Statamic Static Site Generator
229 stars 23 forks source link

Generated files should respect the extension when being generated #62

Closed fitzage closed 3 years ago

fitzage commented 3 years ago

I have a dynamic robots.txt generation setup that works fine with a dynamic statamic site. However, when this gets generated via the static site generator, I get /robots.txt/index.html instead of /robots.txt.

The same thing happens with the sitemap.xml generated by SEO Pro. SSG creates this as /sitemap.xml/index.html instead of /sitemap.xml.

The files contain the contents they’re supposed to at least.