mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
test: twitter og error
This commit is contained in:
parent
b24d5ba9f5
commit
1cb5e6aafc
8 changed files with 4 additions and 7 deletions
|
@ -28,10 +28,10 @@ const pageTitle = postTitle ? `${postTitle} | ${headTitle}` : `${headTitle} - ${
|
|||
const pageDescription = postDescription || description
|
||||
// TODO: Change openGraph image fallback url
|
||||
const pageImage = postSlug
|
||||
? `${url}/opengraph/${postSlug}.png`
|
||||
? `${url}/og/${postSlug}.png`
|
||||
: apiflashKey
|
||||
? `https://api.apiflash.com/v1/urltoimage?access_key=${apiflashKey}&url=${url}${langCode}&format=png&width=1500&height=788&ttl=86400&wait_until=network_idle&no_tracking=true`
|
||||
: `https://api.apiflash.com/v1/urltoimage?access_key=02a837b6188f4ba0a7fd9fbeff03a83e&url=https://retypeset.radishzz.cc${langCode}&format=png&width=1500&height=788&ttl=604800&wait_until=network_idle&no_tracking=true`
|
||||
: `/public/image/og-screenshot.png`
|
||||
---
|
||||
<head>
|
||||
<!-- Basic info -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue