Skip to content

Commit

Permalink
Fix og images
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer authored Nov 1, 2022
1 parent 2966e04 commit 0f2c666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/theme.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ const theme = {

let ogUrl;

if (frontMatter.ogImage || asPath === "/") {
if (asPath === "/") {
ogUrl = `${SITE_ROOT}/og-image.png`;
} else if (frontMatter?.ogImage) {
ogUrl = `${SITE_ROOT}${frontMatter.ogImage}`;
} else {
const type = asPath.startsWith("/repo")
? "repo"
Expand Down

0 comments on commit 0f2c666

Please sign in to comment.