added robots meta tag
This commit is contained in:
parent
7413a3336a
commit
4e26c6ab75
|
@ -1,2 +0,0 @@
|
||||||
User-agent: *
|
|
||||||
Disallow: /download/
|
|
|
@ -9,6 +9,11 @@ module.exports = function(state, body = '') {
|
||||||
<head>
|
<head>
|
||||||
<title>${state.title}</title>
|
<title>${state.title}</title>
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
|
<meta
|
||||||
|
name="robots"
|
||||||
|
content="${state.route === 'download/:id' ? 'none' : 'all'},noarchive"
|
||||||
|
/>
|
||||||
|
<meta name="google" content="nositelinkssearchbox" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
|
@ -33,6 +33,7 @@ module.exports = async function(req) {
|
||||||
fileInfo: {},
|
fileInfo: {},
|
||||||
cspNonce: req.cspNonce,
|
cspNonce: req.cspNonce,
|
||||||
user: { avatar: assets.get('user.svg'), loggedIn: false },
|
user: { avatar: assets.get('user.svg'), loggedIn: false },
|
||||||
|
route: req.route.path,
|
||||||
authConfig,
|
authConfig,
|
||||||
layout
|
layout
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue