diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..dfa5c38 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "tabWidth": 4, + "useTabs": true, + "singleQuote": false, + "jsxSingleQuote": false, + "semi": true, + "arrowParens": "avoid" +} diff --git a/info/contacts/email.md b/info/contacts/email.md index f9bc68f..efdc734 100644 --- a/info/contacts/email.md +++ b/info/contacts/email.md @@ -3,4 +3,4 @@ platform: "Email" name: "support@nin0.dev" url: "mailto:support@nin0.dev" note: "Replies may be slow" ---- \ No newline at end of file +--- diff --git a/info/contacts/telegram.md b/info/contacts/telegram.md index 0793138..a0d8944 100644 --- a/info/contacts/telegram.md +++ b/info/contacts/telegram.md @@ -3,4 +3,4 @@ platform: "Telegram" url: "https://nin0dev.t.me" name: "@nin0dev" note: "Use for quick replies" ---- \ No newline at end of file +--- diff --git a/src/components/Contacts.astro b/src/components/Contacts.astro index e57998f..1387625 100644 --- a/src/components/Contacts.astro +++ b/src/components/Contacts.astro @@ -1,7 +1,9 @@ --- import Social from "./Social.astro" -const contacts = await Astro.glob("../../info/contacts/*.md") +const contacts: any = Object.values(import.meta.glob("../../info/contacts/*.md", { + eager: true +})); ---