From 470198033a96bf278bf5dc39636f8177dd48d51f Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 10 Jan 2021 18:23:45 +0100 Subject: [PATCH 1/3] Add robots.txt --- index.js | 1 + robots.txt | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 robots.txt diff --git a/index.js b/index.js index d920c9e..e8f3e65 100644 --- a/index.js +++ b/index.js @@ -44,6 +44,7 @@ app.set('keyoxide_version', packageData.version); app.set('onion_url', process.env.ONION_URL); app.use('/favicon.svg', express.static('favicon.svg')); +app.use('/robots.txt', express.static('robots.txt')); app.use(stringReplace({ PLACEHOLDER__XMPP_VCARD_SERVER_DOMAIN: process.env.XMPP_VCARD_SERVER_DOMAIN || 'xmpp-vcard.keyoxide.org' diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..1af201e --- /dev/null +++ b/robots.txt @@ -0,0 +1,6 @@ +User-agent: * +Allow: /$ +Allow: /guides +Allow: /getting-started +Allow: /faq +Disallow: / \ No newline at end of file From 370b000e33e21598722e109572152e7e78100c9d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 10 Jan 2021 18:26:05 +0100 Subject: [PATCH 2/3] Add noindex meta tag --- views/profile.pug | 1 + 1 file changed, 1 insertion(+) diff --git a/views/profile.pug b/views/profile.pug index 83c02f4..fb7ade5 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -2,6 +2,7 @@ doctype html head meta(charset='utf-8') meta(name='viewport' content='width=device-width, initial-scale=1') + meta(name='robots' content='noindex') link(rel='shortcut icon' href='/favicon.svg') title Keyoxide link(rel='stylesheet' href='/static/styles.css') From ab617738719503c8777aee25ea9e61390eb3ccac Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 10 Jan 2021 18:28:49 +0100 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88e5eae..61b90d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added - Support for signature profiles +- Robots.txt +- Noindex meta tags on profile pages ### Changed - Allow setting of custom HKP server +## Fixed +- Render error messages when error is object ## [2.3.4] - 2021-01-02 ### Fixed