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

@ -0,0 +1,12 @@
---
name: Sparrow Hawk
avatar: https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Accnis_edit.jpg/220px-Accnis_edit.jpg
occupation: Wizard of Earthsea
company: Earthsea
twitter: https://twitter.com/sparrowhawk
linkedin: https://www.linkedin.com/sparrowhawk
---
At birth Ged was given the child-name Duny by his mother. He was born on the island of Gont, son of a bronzesmith. His mother died before he reached the age of one. As a small boy, Ged had overheard the village witch, his maternal aunt, using various words of power to call goats. Ged later used the words without understanding of their meanings, to surprising effect.
The witch knew that using words of power effectively without understanding them required innate power, so she endeavored to teach him what little she knew. After learning more from her, he was able to call animals to him. Particularly, he was seen in the company of wild sparrowhawks so often that his "use name" became Sparrowhawk.

View File

@ -4,6 +4,7 @@ date: '2020-11-11'
tags: ['next js', 'guide']
draft: false
summary: 'In this article we introduce adding images in the tailwind starter blog and the benefits and limitations of the next/image component.'
author: sparrowhawk
---
# Introduction

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>