fix: fix opengraph

This commit is contained in:
Kazhnuz 2023-10-13 20:02:06 +02:00
parent c3f079e773
commit 6105ac8a32

View file

@ -12,4 +12,11 @@
<meta property='og:site_name' content='<?php bloginfo('name'); ?>'/>
<meta property='og:image' content='<?php echo $image ?>'/>
<meta property='og:description' content='<?php the_excerpt(); ?>'/>
<?php } else { ?>
<meta property='og:url' content='<?php echo get_site_url(); ?>'/>
<meta property='og:type' content='siteweb'/>
<meta property='og:title' content='<?php bloginfo('name'); ?>'/>
<meta property='og:site_name' content='<?php bloginfo('name'); ?>'/>
<meta property='og:image' content='<?php echo get_template_directory_uri() . "/img/default-preview.png"; ?>'/>
<meta property='og:description' content='<?php bloginfo('description'); ?>'/>
<?php } ?>