Commit 985d043
Add head properties needed for twitter card (#2206)
## Description
Occasioanlly it didn't seem to like the "normal" open graph properties
when playing around with a personal website, perhaps a follow up PR is
needed to re-declare the og properties to work (e.g.
`twitter:description`)? Although it could also be a issue with twitter/x
caching things.
Added a twitter card type + set the image using a full path. The are two
types of cards
summary
<img width="691" height="279" alt="Image"
src="https://github.com/user-attachments/assets/451fe636-127c-4880-a8e1-6cd27462b8f4"
/>
or
summary_large_image
<img width="612" height="417" alt="Screenshot 2025-10-25 at 18 51 48"
src="https://github.com/user-attachments/assets/f20b4474-b560-4e96-b55f-e6622c85b30a"
/>
I went with the first one. The image doesn't look correctly formatted
however after #1963
it might just resolve itself...
Closes #2196
### Supplementary material
* https://cards-dev.x.com/validator
* https://developer.x.com/en/docs/x-for-websites/cards/overview/markup
---------
Co-authored-by: Piotr Monwid-Olechnowicz <[email protected]>1 parent a367f08 commit 985d043
2 files changed
+22
-2
lines changedLoading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
46 | | - | |
| 50 | + | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
48 | 68 | | |
49 | 69 | | |
50 | 70 | | |
| |||
0 commit comments