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"
|
||||
className="displayLink"
|
||||
href={person.url}
|
||||
>{`${url.host}${url.pathname.slice(
|
||||
0,
|
||||
url.pathname.lastIndexOf('/')
|
||||
)}`}</a>
|
||||
>{`${url.host}${
|
||||
url.pathname.endsWith('/')
|
||||
? url.pathname.substr(0, url.pathname.length - 1)
|
||||
: url.pathname
|
||||
}`}</a>
|
||||
</header>
|
||||
<p>{person.description}</p>
|
||||
<Tags>
|
||||
|
|
|
|||
Loading…
Reference in a new issue