feat(layout): no search engine index on archive pages
parent
4ae91c1d1e
commit
c8f9807d6a
|
@ -49,6 +49,8 @@ module.exports = class extends Component {
|
|||
favicon
|
||||
} = head;
|
||||
|
||||
const noIndex = helper.is_archive() || helper.is_category() || helper.is_tag();
|
||||
|
||||
const language = page.lang || page.language || config.language;
|
||||
const fontCssUrl = {
|
||||
default: fontcdn('Ubuntu:wght@400;600&family=Source+Code+Pro', 'css2'),
|
||||
|
@ -118,6 +120,7 @@ module.exports = class extends Component {
|
|||
return <head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
{noIndex ? <meta name="robots" content="noindex" /> : null}
|
||||
{meta && meta.length ? <MetaTags meta={meta} /> : null}
|
||||
|
||||
<title>{getPageTitle(page, config.title, helper)}</title>
|
||||
|
|
Loading…
Reference in New Issue