Skip to content

Commit

Permalink
🔨 修复 og:title 内容非站点名问题 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaoo authored Jan 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f217478 commit f7ef168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/header.php
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
<?php endif;?>
<?php if ($this->is('post') || $this->is('page') || $this->is('attachment')): ?>
<meta property="og:url" content="<?php $this->permalink();?>"/>
<meta property="og:title" content="<?php $this->title();?> - <?php $this->options->title();?>"/>
<meta property="og:title" content="<?php $this->title();?> - <?php $this->options->webTitle();?>"/>
<meta property="og:author" content="<?php $this->author();?>"/>
<meta property="og:type" content="article"/>
<meta property="og:image" content="<?php $wzimg = $this->fields->wzimg; echo empty($wzimg) ? randPic() : $wzimg; ?>"/>

0 comments on commit f7ef168

Please sign in to comment.