fix link and seo url

This commit is contained in:
Timothy 2021-01-10 16:09:38 +08:00
parent 83d74cb309
commit 3624a30269
2 changed files with 7 additions and 8 deletions

View File

@ -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">

View File

@ -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 &rarr;
</a>
<Link
href="/blog"
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
aria-label="all posts"
>
All Posts &rarr;
</Link>
</div>
)}