Skip to content

Commit

Permalink
Merge pull request #156 from ShokoAnime/misc-fixes
Browse files Browse the repository at this point in the history
Set Static OG Image.
  • Loading branch information
ElementalCrisis authored Nov 19, 2024
2 parents b81b597 + cd08bee commit bd03388
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default defineConfig({
transformHead({ pageData }) {
const title = pageData.frontmatter.title || 'Shoko';
const description = pageData.frontmatter.description || 'Anime Management System';
const ogImageUrl = `/images/og.svg?title=${encodeURIComponent(title,)}&description=${encodeURIComponent(description)}`;
const ogImageUrl = `/images/og.png?title=${encodeURIComponent(title,)}&description=${encodeURIComponent(description)}`;
const url = `https://docs.shokoanime.com/${pageData.relativePath.replace(/\.md$/, '',)}`;

return [
Expand Down
Binary file removed docs/public/images/og-background.jpg
Binary file not shown.
Binary file added docs/public/images/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions docs/public/images/og.svg

This file was deleted.

0 comments on commit bd03388

Please sign in to comment.