James
unread,Nov 13, 2022, 8:37:27 PM11/13/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hello,
So everything is working but I get errors in my logs that I could just suppress, but I would rather just fix the error.
NGINX Error:
775#775: *2421 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory)
Django Error (warning):
Not Found: /favicon.ico
So here's where things get interesting. I don't want to serve a favicon this way because I can't do a media query. I inline my favicon such that I can do a media query to detect light/dark mode and change the color of the favicon accordingly. If I save the inline code as a svg the media query will not work.
Is there a way around this, or I am forced to choose from implementing the media query at the nginx layer or not having my theme-responsive favicon?
Thanks very much! I hope this is interesting to someone because I think it's super neat to have the favicon change color based on a media query.
Best Regards,
-James Logan