summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/Footer
diff options
context:
space:
mode:
authorGravatar Princesseuh <Princesseuh@users.noreply.github.com> 2022-11-08 18:39:22 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-11-08 18:39:22 +0000
commitdcdeca56acb6c03d4868ece51ef4611e7598e270 (patch)
treef8731cc4f82f335c00a4a9a7f4b573d277b84a3e /examples/docs/src/components/Footer
parent0dcdc6fb1e6160c8a225a65c4810f565e2b673b5 (diff)
downloadastro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.gz
astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.zst
astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.zip
[ci] format
Diffstat (limited to 'examples/docs/src/components/Footer')
-rw-r--r--examples/docs/src/components/Footer/AvatarList.astro44
1 files changed, 24 insertions, 20 deletions
diff --git a/examples/docs/src/components/Footer/AvatarList.astro b/examples/docs/src/components/Footer/AvatarList.astro
index 5926936d6..b75589f5a 100644
--- a/examples/docs/src/components/Footer/AvatarList.astro
+++ b/examples/docs/src/components/Footer/AvatarList.astro
@@ -72,27 +72,31 @@ const additionalContributors = unique.length - recentContributors.length; // lis
<!-- Thanks to @5t3ph for https://smolcss.dev/#smol-avatar-list! -->
<div class="contributors">
<ul class="avatar-list" style={`--avatar-count: ${recentContributors.length}`}>
- {recentContributors.map((item) => (
- <li>
- <a href={`https://github.com/${item.login}`}>
- <img
- alt={`Contributor ${item.login}`}
- title={`Contributor ${item.login}`}
- width="64"
- height="64"
- src={`https://avatars.githubusercontent.com/u/${item.id}`}
- />
- </a>
- </li>
- ))}
+ {
+ recentContributors.map((item) => (
+ <li>
+ <a href={`https://github.com/${item.login}`}>
+ <img
+ alt={`Contributor ${item.login}`}
+ title={`Contributor ${item.login}`}
+ width="64"
+ height="64"
+ src={`https://avatars.githubusercontent.com/u/${item.id}`}
+ />
+ </a>
+ </li>
+ ))
+ }
</ul>
- {additionalContributors > 0 && (
- <span>
- <a href={commitsURL}>{`and ${additionalContributors} additional contributor${
- additionalContributors > 1 ? 's' : ''
- }.`}</a>
- </span>
- )}
+ {
+ additionalContributors > 0 && (
+ <span>
+ <a href={commitsURL}>{`and ${additionalContributors} additional contributor${
+ additionalContributors > 1 ? 's' : ''
+ }.`}</a>
+ </span>
+ )
+ }
{unique.length === 0 && <a href={commitsURL}>Contributors</a>}
</div>