Skip to content
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

remove tophat #3253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

remove tophat #3253

wants to merge 1 commit into from

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Nov 5, 2024

closes #3052

This also fixes malforming meta tags. twitter:card should have the content in the content tag not value (which is what tophat does).

@@ -30,7 +30,6 @@ class CatalogController < ::CatalogController
if Blacklight::VERSION > '8'
blacklight_config.show.document_component = Spotlight::DocumentComponent
else
blacklight_config.show.partials.unshift 'tophat'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this into base instead. I think this is an okay way of doing this but I can change it back.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks to me like for Blacklight 8 this gets handled in the Spotlight::DocumentComponent so will doing this in the base template instead cause meta content to appear twice in Blacklight 8?

@dnoneill dnoneill marked this pull request as ready for review November 5, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate where tophat gem features are used
2 participants