Repository navigation
Share images: brick trays for pages without their own, and a logo default that survives square crops - #1306
Merged
Conversation
…r pages without their own The default share image put the full name beside the logo, so Slack and WhatsApp's centre-square crop showed half of each. The new default stacks the tower above FORRT inside the centre square. Pages without an image of their own now share their Doors area's illustration (doors.share_areas in params.toml), so glossary terms, resources and most section pages no longer all show the logo. scripts/render_share_images.py renders all five images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
✅ Spell Check PassedNo spelling issues found when checking 4 changed file(s)! 🎉 |
Contributor
|
…econd tower The flat tower logo under the 3D brick illustrations clashed, most of all under the justice tower, and the justice shadow ended in a hard edge. Each card now uses its area's tint, its title in Newsreader and "FORRT" in Schola, with the plates' right edges faded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages without an image of their own now get one of 48 top-down brick trays in the Doors brick colours, with the logo on a centre tile, picked by a hash of the page's path (GPT-6.2 Astra's "Brick tray" design). The area cards are gone: their labels were not about the page. The default image's alt text is used only with the default image, so a featured image no longer claims to be the logo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
1 issue found across 55 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="layouts/partials/site_head.html">
<violation number="1" location="layouts/partials/site_head.html:322">
P3: The tray alt text is hardcoded in the template, so it cannot be changed through config and it is English on every language. Move it to a params key next to `sharing_image_alt`, or to i18n, and read it here.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Slack and WhatsApp crop link previews to the centre square. The old default (
img/forrt-share.png) set the full name beside the logo, so the preview showed half of each.Default.
img/forrt-share-logo.pngstacks the tower above "FORRT" within the centre 520 px. The full name stays inog:title. The old file is kept because cached previews andscripts/rebrand/baseline/paths.txtstill point at it. The AWoP app and the annotator, which hardcode the default, now use the new file.Area fallback. A page with no image of its own now uses a card for its Doors area: the area's illustration on its tint, the area name in Newsreader and "FORRT" in the logo's serif. The card has no tower logo, because it clashed with the 3D illustrations. Alt text comes from
content/home/2-areas.md. The page's first URL segment picks the area, using[[doors.share_areas]]inparams.toml. Insite_head.htmlthis fallback comes after the featured image,sharing_image_resource,sharing_imageandheader.image, and before the site default.How the 3,108 pages in a local build divide:
scripts/render_share_images.pyrenders all five images. It needs Pillow, fontTools with Brotli (to read the Newsreader WOFF2) and TeX Gyre Schola, the Century Schoolbook clone used in the logo. The area plates are 640 px wide and are not enlarged; their right edges are faded so shadows that run off the plate end softly.Checked:
og:image, size, type and alt on the home page, a glossary term, a curated resource,/tags/, a replication-hub subpage,/reversals/,/dei/,/about/teams/, plus/awop/,/clusters/,/impact/, a newsletter post and/ai-metascience/, which keep their own images.check_seo_html.pypasses. I inspected all five images at full size and as 250 px and 80 px centre-square crops.🤖 Generated with Claude Code
Summary by cubic
Fixes link previews so Slack and WhatsApp centre-square crops show a complete logo, and pages without their own image no longer all share the same default.
Default share image. The old image put the full name beside the logo, so previews showed half of each. The new
forrt-share-logo.pngstacks the tower above "FORRT" inside the centre 520 px, with the full name moving to the page title. The annotator and AWoP app now use it; the old file stays for cached previews.Brick-tray fallback. Pages with no image of their own now get one of 48 top-down brick-tray images in the Doors brick colours, with the logo on a centre tile. A hash of the page's path picks the tray, so a page always keeps the same tray while pages shared together differ. This replaces the earlier area-card fallback. The default image's alt text is now only used with the default image, so a featured image no longer claims to be the logo; trays get their own alt text from
sharing_tray_alt.scripts/render_share_images.pyrenders all images and needs Pillow, fontTools with Brotli and TeX Gyre Schola.Written for commit 13abbd8. Summary will update on new commits.