Andy-set-studio / hylia

Hylia is a lightweight Eleventy starter kit to help you to create your own blog or personal website.
https://hylia.website
MIT License
905 stars 230 forks source link

Generic page renders as source code #81

Closed adamsilver closed 5 years ago

adamsilver commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Immense, thanks!

On Fri, 20 Sep 2019, 10:40 Andy Bell, notifications@github.com wrote:

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.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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hankchizljaw/hylia/issues/81?email_source=notifications&email_token=AAAJCK3KLAFZDJCPCMKQNYDQKSLCHA5CNFSM4IYUFYJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GFNIA#issuecomment-533485216, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAJCKYKKBRRYI6HRF6M3NLQKSLCHANCNFSM4IYUFYJA .