summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/Footer
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs/src/components/Footer')
-rw-r--r--examples/docs/src/components/Footer/AvatarList.astro10
-rw-r--r--examples/docs/src/components/Footer/Footer.astro2
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/docs/src/components/Footer/AvatarList.astro b/examples/docs/src/components/Footer/AvatarList.astro
index 6f3ff1a7f..e5880a03a 100644
--- a/examples/docs/src/components/Footer/AvatarList.astro
+++ b/examples/docs/src/components/Footer/AvatarList.astro
@@ -1,6 +1,6 @@
---
// fetch all commits for just this page's path
-const path = "docs/" + Astro.props.path;
+const path = 'docs/' + Astro.props.path;
const url = `https://api.github.com/repos/withastro/astro/commits?path=${path}`;
const commitsURL = `https://github.com/withastro/astro/commits/main/${path}`;
@@ -13,13 +13,13 @@ async function getCommits(url) {
);
}
- const auth = `Basic ${Buffer.from(token, "binary").toString("base64")}`;
+ const auth = `Basic ${Buffer.from(token, 'binary').toString('base64')}`;
const res = await fetch(url, {
- method: "GET",
+ method: 'GET',
headers: {
Authorization: auth,
- "User-Agent": "astro-docs/1.0",
+ 'User-Agent': 'astro-docs/1.0',
},
});
@@ -81,7 +81,7 @@ const additionalContributors = unique.length - recentContributors.length; // lis
{additionalContributors > 0 && (
<span>
<a href={commitsURL}>{`and ${additionalContributors} additional contributor${
- additionalContributors > 1 ? "s" : ""
+ additionalContributors > 1 ? 's' : ''
}.`}</a>
</span>
)}
diff --git a/examples/docs/src/components/Footer/Footer.astro b/examples/docs/src/components/Footer/Footer.astro
index ab0634976..d13f832e5 100644
--- a/examples/docs/src/components/Footer/Footer.astro
+++ b/examples/docs/src/components/Footer/Footer.astro
@@ -1,5 +1,5 @@
---
-import AvatarList from "./AvatarList.astro";
+import AvatarList from './AvatarList.astro';
const { path } = Astro.props;
---