Skip to content

Better preview titles #4272

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 8 commits into from
Mar 24, 2025
Merged

Conversation

jtraub91
Copy link
Contributor

@jtraub91 jtraub91 commented Mar 10, 2025

Add better titles to preview pages (per #4264)

In this solution, inscription_number is fetched from the index entry where necessary, and passed to the preview structs and templates, to be used as part of the HTML title tags, respectively. Note also inscription_number is added to the r::content_response function signature, to be able to be passed to PreviewIframeHtml, and explicitly set to 0 in tests.

Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

LGTM

I just got rid of some of the unwraps and added a small test.

@raphjaph raphjaph enabled auto-merge (squash) March 24, 2025 18:13
@raphjaph raphjaph merged commit 0493965 into ordinals:master Mar 24, 2025
5 checks passed
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.

2 participants