Add image to Wrapstodon OpenGraph banner (#37205)

This commit is contained in:
Claire 2025-12-11 17:22:48 +01:00 committed by GitHub
parent 4323963053
commit 5e3387539e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

View File

@ -0,0 +1,6 @@
- if %w(lurker booster pollster replier oracle).include?(report.data['archetype'])
= opengraph 'og:image', frontend_asset_url("images/archetypes/previews/#{report.data['archetype']}.jpg")
= opengraph 'og:image:type', 'image/jpeg'
= opengraph 'og:image:width', 1200
= opengraph 'og:image:height', 630
= opengraph 'twitter:card', 'summary_large_image'

View File

@ -9,6 +9,7 @@
= opengraph 'profile:username', acct(@account)[1..]
= render 'og_description', account: @account
= render 'og_image', report: @generated_annual_report
= vite_typescript_tag 'wrapstodon.tsx', crossorigin: 'anonymous'