mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
fix: og url error
This commit is contained in:
parent
c97e3d5882
commit
66d055f512
2 changed files with 4 additions and 3 deletions
|
@ -31,9 +31,10 @@ const pathParts = currentPath.split('/').filter(part => part !== '')
|
|||
const slug = pathParts.length > 0 ? pathParts[pathParts.length - 1] : ''
|
||||
|
||||
// Prioritize auto-generated OG image, otherwise use fallback OG image
|
||||
const pageImage = isPost && slug ? `${url}/og/${slug}` : favicon
|
||||
const pageImage = isPost && slug
|
||||
? `${url}/og/${slug}.png`
|
||||
: (favicon.startsWith('http') ? favicon : `${url}${favicon}`)
|
||||
---
|
||||
|
||||
<head>
|
||||
<!-- Basic info -->
|
||||
<meta charset="utf-8" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue