mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
fix canonical link meta
This commit is contained in:
parent
005951ee4d
commit
fd013a7508
@ -966,7 +966,7 @@ class Archive extends Contents
|
||||
$allows = self::pluginHandle()->call('headerOptions', $allows, $this);
|
||||
$title = (empty($this->archiveTitle) ? '' : $this->archiveTitle . ' » ') . $this->options->title;
|
||||
|
||||
$header = '<link rel="canonical" href="' . $this->archiveUrl . '" />' . "\n";
|
||||
$header = $this->is('single') ? '<link rel="canonical" href="' . $this->archiveUrl . '" />' . "\n" : '';
|
||||
|
||||
if (!empty($allows['pingback']) && 2 == $this->options->allowXmlRpc) {
|
||||
$header .= '<link rel="pingback" href="' . $allows['pingback'] . '" />' . "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user