From 4e26c6ab75bb142fc20f15e56c8ce3f35fbf9eb3 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 14 Mar 2019 11:40:01 -0700 Subject: [PATCH] added robots meta tag --- public/robots.txt | 2 -- server/layout.js | 5 +++++ server/state.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 public/robots.txt diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 72abb7a8..00000000 --- a/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: /download/ diff --git a/server/layout.js b/server/layout.js index c11a7be9..7da25205 100644 --- a/server/layout.js +++ b/server/layout.js @@ -9,6 +9,11 @@ module.exports = function(state, body = '') { ${state.title} + + diff --git a/server/state.js b/server/state.js index 59348512..a0bc21e0 100644 --- a/server/state.js +++ b/server/state.js @@ -33,6 +33,7 @@ module.exports = async function(req) { fileInfo: {}, cspNonce: req.cspNonce, user: { avatar: assets.get('user.svg'), loggedIn: false }, + route: req.route.path, authConfig, layout };