upstream #1
@ -86,9 +86,7 @@ export default function ListLayout({ posts, title, initialDisplayPosts = [], pag
|
|||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{pagination &&
|
{pagination && pagination.totalPages > 1 && !searchValue && (
|
||||||
pagination.totalPages > 1 &&
|
|
||||||
!searchValue && (
|
|
||||||
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
|
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
@ -2,6 +2,7 @@ import Link from '@/components/Link'
|
|||||||
import PageTitle from '@/components/PageTitle'
|
import PageTitle from '@/components/PageTitle'
|
||||||
import SectionContainer from '@/components/SectionContainer'
|
import SectionContainer from '@/components/SectionContainer'
|
||||||
import { BlogSeo } from '@/components/SEO'
|
import { BlogSeo } from '@/components/SEO'
|
||||||
|
import Image from '@/components/Image'
|
||||||
import Tag from '@/components/Tag'
|
import Tag from '@/components/Tag'
|
||||||
import siteMetadata from '@/data/siteMetadata'
|
import siteMetadata from '@/data/siteMetadata'
|
||||||
|
|
||||||
@ -47,7 +48,13 @@ export default function PostLayout({ children, frontMatter, next, prev }) {
|
|||||||
<dd>
|
<dd>
|
||||||
<ul className="flex justify-center space-x-8 xl:block sm:space-x-12 xl:space-x-0 xl:space-y-8">
|
<ul className="flex justify-center space-x-8 xl:block sm:space-x-12 xl:space-x-0 xl:space-y-8">
|
||||||
<li className="flex items-center space-x-2">
|
<li className="flex items-center space-x-2">
|
||||||
<img src={siteMetadata.image} alt="avatar" className="w-10 h-10 rounded-full" />
|
<Image
|
||||||
|
src={siteMetadata.image}
|
||||||
|
width="38px"
|
||||||
|
height="38px"
|
||||||
|
alt="avatar"
|
||||||
|
className="w-10 h-10 rounded-full"
|
||||||
|
/>
|
||||||
<dl className="text-sm font-medium leading-5 whitespace-nowrap">
|
<dl className="text-sm font-medium leading-5 whitespace-nowrap">
|
||||||
<dt className="sr-only">Name</dt>
|
<dt className="sr-only">Name</dt>
|
||||||
<dd className="text-gray-900 dark:text-gray-100">{siteMetadata.author}</dd>
|
<dd className="text-gray-900 dark:text-gray-100">{siteMetadata.author}</dd>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"build": "next build && node ./scripts/generate-sitemap",
|
"build": "next build && node ./scripts/generate-sitemap",
|
||||||
"serve": "next start",
|
"serve": "next start",
|
||||||
"analyze": "cross-env ANALYZE=true next build",
|
"analyze": "cross-env ANALYZE=true next build",
|
||||||
"lint": "next lint --fix",
|
"lint": "next lint --fix --dir pages --dir components --dir lib --dir layouts --dir scripts",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user