diff --git a/components/opengraph.php b/components/opengraph.php new file mode 100644 index 0000000..23f3c83 --- /dev/null +++ b/components/opengraph.php @@ -0,0 +1,15 @@ + + ID )) { + $image = get_template_directory_uri() . "/img/default-preview.png"; + } else { + $image = get_the_post_thumbnail_url(); + } + ?> + + + + '/> + '/> + + + diff --git a/header.php b/header.php index 39ea18a..b400d51 100644 --- a/header.php +++ b/header.php @@ -11,6 +11,7 @@ + diff --git a/img/default-preview.png b/img/default-preview.png new file mode 100644 index 0000000..ad7f718 Binary files /dev/null and b/img/default-preview.png differ