Skip to content

Commit

Permalink
Fix formatting (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtterlord authored Jan 27, 2025
1 parent 47b12d5 commit d87f10e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/themes/_components/ThemeAuthorProfile.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { Image } from 'astro:assets';
import LeftArrowIcon from '~/icons/LeftArrowIcon.tsx'
import LeftArrowIcon from '~/icons/LeftArrowIcon.tsx';
import type { Author } from '../_types/index.ts';
interface Props {
@@ -41,13 +41,15 @@ const { author } = Astro.props;
</div>
{
author.url && (
<hr class="border-astro-gray-500" />
<div class="flex items-baseline justify-between">
<small class="code text-astro-gray-200">Website</small>
<a class="link" href={author.url}>
{author.url.replace(/^https?:\/\/|\/$/g, '')}
</a>
</div>
<>
<hr class="border-astro-gray-500" />
<div class="flex items-baseline justify-between">
<small class="code text-astro-gray-200">Website</small>
<a class="link" href={author.url}>
{author.url.replace(/^https?:\/\/|\/$/g, '')}
</a>
</div>
</>
)
}
</div>

0 comments on commit d87f10e

Please sign in to comment.