introducing og-image component

This commit is contained in:
Antoine M 2023-12-21 10:06:12 +01:00
parent 357f9bfb1e
commit f4e2ab930d

View File

@ -0,0 +1,13 @@
<?php
$ogImage = null;
if (is_page_template('template-publications.php')) {
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
} else {
$ogImage = "https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg";
}
?>
<?php if ($ogImage) : ?>
<meta property="og:image" content="https://homegrade.brussels/wp-content/uploads/2023/05/vitrail-art-nouveau-entretien-restauration-webinaire-homegrade.jpg" />
<?php endif; ?>