Update header.php

pull/553/head
n0099 2022-11-19 05:55:17 +08:00 committed by GitHub
parent a84a7278b8
commit 7f9e779191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -27,9 +27,7 @@
<meta property="og:title" content="<?php echo $title; ?>">
<meta property="og:type" content="article">
<?php
if (is_home()) {
echo "<meta property='og:article:tag' content='{$tag->name}'>";
} else {
if (!is_home()) {
$tags = get_the_tags();
if (is_array($tags)) {
foreach ($tags as $tag) { ?>