Use comma for implode robots meta tag

According to http://www.robotstxt.org/meta.html and https://www.webmasterworld.com/forum93/669.htm using only a space between the values probably isn't the proper syntax and could ignore all values (perhaps that explains why Google ignored my `noindex nofollow noarchive`).
This commit is contained in:
Guillaume 2019-02-13 16:28:22 +01:00 committed by GitHub
parent 29bc6c1ef7
commit 59a6440fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class pluginRobots extends Plugin {
}
if (!empty($robots)) {
$robots = implode(' ', $robots);
$robots = implode(',', $robots);
$html .= '<meta name="robots" content="'.$robots.'">'.PHP_EOL;
}
}
@ -63,4 +63,4 @@ class pluginRobots extends Plugin {
}
}
}
}