refactor: change the og image url for unfied the access routing.
This commit is contained in:
parent
a44f8ca0e5
commit
f3b1c0da15
src
@ -21,7 +21,7 @@ const { Content, headings } = await page.render();
|
||||
---
|
||||
|
||||
<BaseLayout title={page.title} description={page.summary} footer={false}>
|
||||
<PageMeta slot="og" title={page.title} description={page.summary} ogImageUrl={`/og/${page.slug}.png`} />
|
||||
<PageMeta slot="og" title={page.title} description={page.summary} ogImageUrl={`/images/og/${page.slug}.png`} />
|
||||
|
||||
<div class="row gx-0">
|
||||
<div class="col-lg-8 col-xl-8">
|
||||
|
@ -28,7 +28,7 @@ const { Content, headings } = await post.render();
|
||||
description={post.summary}
|
||||
publishDate={post.date.toISOString()}
|
||||
requestPath={post.permalink}
|
||||
ogImageUrl={`/og/${post.slug}.png`}
|
||||
ogImageUrl={`/images/og/${post.slug}.png`}
|
||||
ogImageAltText={`${post.title} - ${post.summary}`}
|
||||
/>
|
||||
<div class="px-lg-2 px-xxl-5 py-3 py-md-4 py-xxl-5">
|
||||
|
Loading…
Reference in New Issue
Block a user