Skip to content

Commit

Permalink
fix: opengraph image
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasti810 committed Jan 29, 2025
1 parent 0a6bf83 commit 114f821
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Binary file removed public/images/og.jpg
Binary file not shown.
File renamed without changes
7 changes: 2 additions & 5 deletions src/lib/og.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ type OpenGraphType = {
templateTitle?: string;
logo?: string;
};
// !STARTERCONF This OG is generated from https://github.com/theodorusclarence/og
// Please clone them and self-host if your site is going to be visited by many people.
// Then change the url and the default logo.

export function openGraph({
siteName,
templateTitle,
description,
// !STARTERCONF Or, you can use my server with your own logo.
logo = 'https://og.<your-domain>/images/logo.jpg',
logo = 'https://prism.rs/images/prism_logo.png',
}: OpenGraphType): string {
const ogLogo = encodeURIComponent(logo);
const ogSiteName = encodeURIComponent(siteName.trim());
Expand Down

0 comments on commit 114f821

Please sign in to comment.