Skip to content

Add favicon tags #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2025
Merged

Add favicon tags #761

merged 1 commit into from
Mar 17, 2025

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Mar 17, 2025

image

@Copilot Copilot AI review requested due to automatic review settings March 17, 2025 20:43
@reakaleek reakaleek requested a review from a team as a code owner March 17, 2025 20:43
@reakaleek reakaleek self-assigned this Mar 17, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds favicon support by introducing a new partial view and updating the head layout accordingly.

  • Inserts a partial call in the head layout to render favicon tags.
  • Removes an unused configuration property from the htmx meta tag.
  • Adds a new partial view containing various favicon link tags.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Elastic.Markdown/Slices/Layout/_Head.cshtml Updates head layout to render favicon partial and simplifies the htmx meta tag.
src/Elastic.Markdown/Slices/Layout/_Favicon.cshtml Introduces a new partial view with multiple favicon link declarations.

@reakaleek reakaleek enabled auto-merge (squash) March 17, 2025 20:58
<meta name="robots" content="@(Model.AllowIndexing ? "index, follow" : "noindex, nofollow")">
<meta name="htmx-config" content='{"scrollIntoViewOnBoost": false, "selfRequestsOnly": true}'>
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated change: We are not using boosted links. Hence, this config option is not necessary.

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

One of those "It bugs me, it should be fast to implement" issues that somehow still always ends up at the bottom of the priority queue.

Thank you @reakaleek for getting it of our queue! 😸

@reakaleek reakaleek merged commit 88ff72b into main Mar 17, 2025
10 of 11 checks passed
@reakaleek reakaleek deleted the feature/add-favicon branch March 17, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants