Repository navigation
Majors: link previews and search for a major's page - #41
Merged
Merged
Conversation
start.ng/majors/<slug> gets a server-written page (/pages/majors/<slug>) with the major's own title, description, Event data and preview picture, so X, WhatsApp and search engines show the major instead of the general start.ng page. The preview picture (/majors/<slug>/share.jpg, 1200x630) is drawn from the major's details: start.ng x the partner's logo, the title, the dates in Nigeria time, the prize on a ticket and the card picture fading in. Admins can give their own picture instead (majors.share_image_url, migration 0052). Partner pictures are fetched over https from public addresses only, with no redirects, a size cap and a short timeout. Published majors join the sitemap.
Majors: link previews and search for a major's page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings Cybertron-HNG#197 to staging: start.ng/majors/ gets a server-written page with the major's own title, description, Event data and a 1200x630 preview picture drawn from its details (or the admin's own picture, majors.share_image_url, migration 0052). Deploy before the frontend PR.