upstream #1
@ -51,15 +51,19 @@ export default function PostLayout({ children, frontMatter, next, prev }) {
|
|||||||
<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>
|
||||||
<dt className="sr-only">Twitter</dt>
|
{typeof siteMetadata.twitter === 'string' && (
|
||||||
<dd>
|
<>
|
||||||
<Link
|
<dt className="sr-only">Twitter</dt>
|
||||||
href={siteMetadata.twitter}
|
<dd>
|
||||||
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
|
<Link
|
||||||
>
|
href={siteMetadata.twitter}
|
||||||
{siteMetadata.twitter.replace('https://twitter.com/', '@')}
|
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
|
||||||
</Link>
|
>
|
||||||
</dd>
|
{siteMetadata.twitter.replace('https://twitter.com/', '@')}
|
||||||
|
</Link>
|
||||||
|
</dd>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user