Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Generic page renders as source code #81

Closed
adamsilver opened this issue Sep 20, 2019 · 2 comments
Closed

Generic page renders as source code #81

adamsilver opened this issue Sep 20, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@adamsilver
Copy link

What I did:

  1. Create a new Hylia site
  2. Enabled the Git identity to be able to login to the CMS
  3. Made a new Generic Page
  4. Published it

And it renders the source code which you can see here:

image

@Andy-set-studio Andy-set-studio added the bug Something isn't working label Sep 20, 2019
@Andy-set-studio
Copy link
Owner

Andy-set-studio commented Sep 20, 2019

Cracked it! A bit of a weird one, but here it is:

When you set the permalink like this /testing-123 which is the intuitive way to do it, Eleventy appears to render it as a file. The browser then just treats it as a text file.

The solution is to do /testing-123/index.html instead...

https://lucid-bhabha-061e53.netlify.com/testing-123/

What I’ll do is try to add some helper text in the CMS for that field and remove the required state.

Cheers for uncovering this one, Adam.

@adamsilver
Copy link
Author

adamsilver commented Sep 20, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants