Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Adam DJ Brett
@adjb@hcommons.social  路  activity timestamp 2 days ago

Presently, I am working on updating the alfieaward.com website, and I am having a peculiar issue with local development. When I deploy locally with #11ty Eleventy v3.1.2, humans.txt becomes localhost:8080/humans.txt/ and that trailing slash is killing me. When I deploy to Netlify it looks fine. I wouldn't worry so much, except sometimes it also gives me Object.writeFileSync errors. Do you have any suggestions for me? #webdev

  • Copy link
  • Flag this post
  • Block
Tommi 馃く
@tommi@pan.rent replied  路  activity timestamp 2 days ago

@adjb I suggest saving the page as humans.txt.liquid, and then adding

---
permalink; /humans.txt
---

to the front matter

  • Copy link
  • Flag this comment
  • Block
Adam DJ Brett
@adjb@hcommons.social replied  路  activity timestamp yesterday

@tommi thanks. what is weird is I had it as humans.txt.njk and that was rendering /humans.txt/ BUT changing it to humans.txt.liquid worked??? I'm glad it worekd but its baffling

  • Copy link
  • Flag this comment
  • Block
Tommi 馃く
@tommi@pan.rent replied  路  activity timestamp yesterday

@adjb mmmmh interesting

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login