Changeset 61514f2 in Klonkt
- Timestamp:
- 06/30/2026 01:01:58 PM (2 months ago)
- Branches:
- main
- Children:
- d5aa7c8
- Parents:
- 4d63c36
- File:
-
- 1 edited
-
src/views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/shell.ejs
r4d63c36 r61514f2 73 73 _socialImage = ogOrigin + '/og/' + encodeURIComponent(safeSite.slug) + '.png'; 74 74 _ogGenerated = true; 75 } 76 // og:image / twitter:image / JSON-LD image MUST be absolute (OGP spec). A post cover arrives as 77 // a relative /media/... path; strict scrapers (WhatsApp/Signal/some fediverse clients) won't 78 // resolve it against the page URL → no preview image. Absolutize against the canonical origin. 79 if (_socialImage && _socialImage.charAt(0) === '/' && _socialImage.charAt(1) !== '/' && typeof ogOrigin !== 'undefined' && ogOrigin) { 80 _socialImage = ogOrigin + _socialImage; 75 81 } 76 82 const _ogType = isPostPage ? 'article' : 'website';
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)