diff --git a/astro.config.mjs b/astro.config.mjs index a0f885f..65246aa 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,6 +6,7 @@ import node from "@astrojs/node"; // https://astro.build/config export default defineConfig({ + site: "https://default-creds.hadi.diy", output: "server", vite: { plugins: [tailwindcss()], diff --git a/public/op.png b/public/op.png new file mode 100644 index 0000000..e5f3647 Binary files /dev/null and b/public/op.png differ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 16d591f..a08ee69 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,11 +6,13 @@ import { Search, Book, Github, User, Shield, Coffee } from "lucide-svelte"; interface Props { title?: string; description?: string; + ogImage?: string; } const { title = "Default Creds", description = "Open-source database of default credentials for pentesters and researchers. Find factory-set passwords for any device or software.", + ogImage = `${Astro.site ?? "https://default-creds.hadi.diy"}/og.png` } = Astro.props; const myLinks = [ @@ -49,8 +51,20 @@ const umamiId = process.env.PUBLIC_UMAMI_WEBSITE_ID; {title === "Default Creds" ? title : `${title} | Default Creds`} + + + + + + + + + + + +