Skip to content

Share images: brick trays for pages without their own, and a logo default that survives square crops - #1306

Merged
LukasWallrich merged 4 commits into
rebrand-doorsfrom
doors/share-images
Nov 25, 2026
Merged

LukasWallrich merged 4 commits into
rebrand-doorsfrom
doors/share-images

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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.png stacks the tower above "FORRT" within the centre 520 px. The full name stays in og:title. The old file is kept because cached previews and scripts/rebrand/baseline/paths.txt still 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]] in params.toml. In site_head.html this fallback comes after the featured image, sharing_image_resource, sharing_image and header.image, and before the site default.

How the 3,108 pages in a local build divide:

Image Pages
Education (glossary, curated resources, lesson plans …) 2,884
Community (about, contributors, newsletters …) 138
Page-specific (unchanged) 53
Default logo (home, CoC, privacy, imprint …) 16
Justice 9
Research 6

scripts/render_share_images.py renders 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.py passes. 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.png stacks 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.py renders all images and needs Pillow, fontTools with Brotli and TeX Gyre Schola.

Written for commit 13abbd8. Summary will update on new commits.

View guided diff Turn on auto-fix

…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>
@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 25, 2026 12:27
@github-actions

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 4 changed file(s)! 🎉

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 10 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Image files/references in png/jpg format detected

Note that we generally rely on WebP format for this webpage, so please consider converting these images to WebP format and updating references accordingly.

Image files:

  • static/img/forrt-share-logo.png

References to image files:

  • config/_default/params.toml: img/forrt-share-logo.png

LukasWallrich and others added 2 commits November 25, 2026 12:36
…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>
@LukasWallrich LukasWallrich changed the title Share images: a logo that survives square crops, and an area image for pages without their own Share images: brick trays for pages without their own, and a logo default that survives square crops Nov 25, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread layouts/partials/site_head.html Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich merged commit 8579d21 into rebrand-doors Nov 25, 2026
12 of 14 checks passed
@LukasWallrich
LukasWallrich deleted the doors/share-images branch November 25, 2026 14:13
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.

1 participant