Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Christopher Kirk-Nielsen
@chriskirknielsen@front-end.social  ·  activity timestamp 3 weeks ago

We've all used the favicon trick to distinguish local/dev from the live site, right? Here's a quick tip to tell which file @11ty should save as the favicon to the output folder, based on the environment, without modifying template files — only the passthrough: https://chriskirknielsen.com/blog/conditional-favicon-with-eleventy-passthrough-copy/#Eleventy #favicon

  • Copy link
  • Flag this post
  • Block
Christopher Kirk-Nielsen
@chriskirknielsen@front-end.social replied  ·  activity timestamp 3 weeks ago

I really hesitated to post this because it ruined a perfectly good numerical relationship between the content and the Eleventy-tagged posts on my blog… might need to write 98 more, to reach 110.

The hero section of my website for the page with all posts tagged as "eleventy", which reads: "12 posts tagged “eleventy”"
The hero section of my website for the page with all posts tagged as "eleventy", which reads: "12 posts tagged “eleventy”"
The hero section of my website for the page with all posts tagged as "eleventy", which reads: "12 posts tagged “eleventy”"
  • Copy link
  • Flag this comment
  • Block
Christopher Kirk-Nielsen
@chriskirknielsen@front-end.social replied  ·  activity timestamp 3 weeks ago

Secondary, late-night thought: this should be called a favicond, as in, favi-condition. It was right there! Dang it!

  • 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.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login