mirror of
https://github.com/anotherhadi/default-creds.git
synced 2026-04-02 11:32:11 +02:00
Add open graph & twitter banners
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import node from "@astrojs/node";
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
site: "https://default-creds.hadi.diy",
|
||||||
output: "server",
|
output: "server",
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
|||||||
BIN
public/op.png
Normal file
BIN
public/op.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
@@ -6,11 +6,13 @@ import { Search, Book, Github, User, Shield, Coffee } from "lucide-svelte";
|
|||||||
interface Props {
|
interface Props {
|
||||||
title?: string;
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
|
ogImage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
title = "Default Creds",
|
title = "Default Creds",
|
||||||
description = "Open-source database of default credentials for pentesters and researchers. Find factory-set passwords for any device or software.",
|
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;
|
} = Astro.props;
|
||||||
|
|
||||||
const myLinks = [
|
const myLinks = [
|
||||||
@@ -49,8 +51,20 @@ const umamiId = process.env.PUBLIC_UMAMI_WEBSITE_ID;
|
|||||||
{title === "Default Creds" ? title : `${title} | Default Creds`}
|
{title === "Default Creds" ? title : `${title} | Default Creds`}
|
||||||
</title>
|
</title>
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
|
|
||||||
|
<!-- Open Graph -->
|
||||||
<meta property="og:title" content={title} />
|
<meta property="og:title" content={title} />
|
||||||
<meta property="og:description" content={description} />
|
<meta property="og:description" content={description} />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:url" content={Astro.url} />
|
||||||
|
<meta property="og:image" content={ogImage} />
|
||||||
|
<meta property="og:site_name" content="Default Creds" />
|
||||||
|
|
||||||
|
<!-- Twitter / X -->
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta name="twitter:title" content={title} />
|
||||||
|
<meta name="twitter:description" content={description} />
|
||||||
|
<meta name="twitter:image" content={ogImage} />
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-base-100 min-h-screen">
|
<body class="bg-base-100 min-h-screen">
|
||||||
<Navbar title="Default Creds" navLinks={myLinks} client:load>
|
<Navbar title="Default Creds" navLinks={myLinks} client:load>
|
||||||
|
|||||||
Reference in New Issue
Block a user