fix: navigate next13.x upgrade
This commit is contained in:
parent
f2029bf4a1
commit
5a7a14da50
23 changed files with 7959 additions and 101 deletions
|
@ -1,4 +1,4 @@
|
|||
import Link from '@/components/Link'
|
||||
import Link from 'next/link'
|
||||
import PageTitle from '@/components/PageTitle'
|
||||
import SectionContainer from '@/components/SectionContainer'
|
||||
import { BlogSEO } from '@/components/SEO'
|
||||
|
@ -61,7 +61,7 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
|
|||
className="divide-y divide-gray-200 pb-8 dark:divide-gray-700 xl:grid xl:grid-cols-4 xl:gap-x-6 xl:divide-y-0"
|
||||
style={{ gridTemplateRows: 'auto 1fr' }}
|
||||
>
|
||||
<dl className="pt-6 pb-10 xl:border-b xl:border-gray-200 xl:pt-11 xl:dark:border-gray-700">
|
||||
<dl className="pb-10 pt-6 xl:border-b xl:border-gray-200 xl:pt-11 xl:dark:border-gray-700">
|
||||
<dt className="sr-only">Authors</dt>
|
||||
<dd>
|
||||
<ul className="flex justify-center space-x-8 sm:space-x-12 xl:block xl:space-x-0 xl:space-y-8">
|
||||
|
@ -70,8 +70,8 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
|
|||
{author.avatar && (
|
||||
<Image
|
||||
src={author.avatar}
|
||||
width="64px"
|
||||
height="64px"
|
||||
width="64"
|
||||
height="64"
|
||||
alt="avatar"
|
||||
className="h-10 w-10 rounded-full"
|
||||
/>
|
||||
|
@ -97,7 +97,7 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
|
|||
</dd>
|
||||
</dl>
|
||||
<div className="divide-y divide-gray-200 dark:divide-gray-700 xl:col-span-3 xl:row-span-2 xl:pb-0">
|
||||
<div className="prose max-w-none pt-10 pb-8 dark:prose-dark">
|
||||
<div className="prose max-w-none pb-8 pt-10 dark:prose-dark">
|
||||
{children}
|
||||
{youtubeId ? <YoutubeVideo title={title} data={youtubeId} /> : null}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue