Skip to content

fix: add favicon.ico support#477

Open
GulshanJha00 wants to merge 3 commits intoNextCommunity:mainfrom
GulshanJha00:fix-favicon-clean
Open

fix: add favicon.ico support#477
GulshanJha00 wants to merge 3 commits intoNextCommunity:mainfrom
GulshanJha00:fix-favicon-clean

Conversation

@GulshanJha00
Copy link
Copy Markdown
Contributor

Fixes #134

Added favicon.ico support by:

  • adding a root favicon.ico file
  • configuring Eleventy passthrough copy
  • linking the favicon in the document head

This resolves the 404 issue for /favicon.ico.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a favicon to the site by updating the Eleventy configuration to copy the favicon file and adding the corresponding link tag to the index template. Feedback was provided to use the url filter for the favicon path to ensure correct resolution when the site is hosted in a sub-directory.

Comment thread src/index.njk Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

404 not found for favicon.ico

1 participant