chore: add 2nd author example

This commit is contained in:
Timothy Lin
2021-05-16 16:06:55 +08:00
parent b380a6f15a
commit 41850ef6f0
3 changed files with 18 additions and 1 deletions

View File

@ -47,7 +47,11 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
<dd>
<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">
<img src={siteMetadata.image} alt="avatar" className="w-10 h-10 rounded-full" />
<img
src={authorDetails.avatar}
alt="avatar"
className="w-10 h-10 rounded-full"
/>
<dl className="text-sm font-medium leading-5 whitespace-nowrap">
<dt className="sr-only">Name</dt>
<dd className="text-gray-900 dark:text-gray-100">{authorDetails.name}</dd>