diff --git a/index.php b/index.php index 7814076..1559865 100644 --- a/index.php +++ b/index.php @@ -361,6 +361,8 @@ $baseParams = ($rawKeyword !== '') ? ['q' => $rawKeyword] : []; $defaultOgImageUrl = 'https://bubulescu.org/assets/img/bubulescuorg.jpg'; $ogImageUrl = $defaultOgImageUrl; $ogImageAlt = 'MVLog: journal of an unreliable narrator.'; +$ogType = ($articleId !== '') ? 'article' : 'website'; +$ogUrl = ($articleId !== '') ? ('https://bubulescu.org/?id=' . rawurlencode($articleId)) : 'https://bubulescu.org/'; $pageTitle = 'MVLog'; if ($articleId !== '') { $customOg = article_og_image_url($articleId); @@ -388,10 +390,10 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)]; <?=h($pageTitle)?> - + - + @@ -404,6 +406,8 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)]; + +