mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
fixes display link
This commit is contained in:
parent
154411c8a3
commit
7b7b164751
1 changed files with 5 additions and 4 deletions
|
|
@ -23,10 +23,11 @@ export default function Person({ person, currentTag }) {
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="displayLink"
|
className="displayLink"
|
||||||
href={person.url}
|
href={person.url}
|
||||||
>{`${url.host}${url.pathname.slice(
|
>{`${url.host}${
|
||||||
0,
|
url.pathname.endsWith('/')
|
||||||
url.pathname.lastIndexOf('/')
|
? url.pathname.substr(0, url.pathname.length - 1)
|
||||||
)}`}</a>
|
: url.pathname
|
||||||
|
}`}</a>
|
||||||
</header>
|
</header>
|
||||||
<p>{person.description}</p>
|
<p>{person.description}</p>
|
||||||
<Tags>
|
<Tags>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue