fix link and seo url
This commit is contained in:
parent
83d74cb309
commit
3624a30269
@ -18,7 +18,7 @@ export default function PostLayout({ children, frontMatter, next, prev }) {
|
||||
|
||||
return (
|
||||
<SectionContainer>
|
||||
<BlogSeo url={`${frontMatter.url}/blog/${frontMatter.slug}`} {...frontMatter} />
|
||||
<BlogSeo url={`${siteMetdata.siteUrl}/blog/${frontMatter.slug}`} {...frontMatter} />
|
||||
<article className="xl:divide-y xl:divide-gray-200 xl:dark:divide-gray-700">
|
||||
<header className="pt-6 xl:pb-6">
|
||||
<div className="space-y-1 text-center">
|
||||
|
@ -84,13 +84,12 @@ export default function Home({ posts }) {
|
||||
</div>
|
||||
{posts.length > MAX_DISPLAY && (
|
||||
<div className="flex justify-end text-base leading-6 font-medium">
|
||||
<Link href="/blog">
|
||||
<a
|
||||
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
|
||||
aria-label="all posts"
|
||||
>
|
||||
All Posts →
|
||||
</a>
|
||||
<Link
|
||||
href="/blog"
|
||||
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
|
||||
aria-label="all posts"
|
||||
>
|
||||
All Posts →
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user