forked from Mirrors/keyoxide-web
Merge branch 'dev' into js-and-css-impromement
This commit is contained in:
commit
3eb1562871
4 changed files with 12 additions and 0 deletions
|
@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
- Support for signature profiles
|
- Support for signature profiles
|
||||||
|
- Robots.txt
|
||||||
|
- Noindex meta tags on profile pages
|
||||||
### Changed
|
### Changed
|
||||||
- Allow setting of custom HKP server
|
- Allow setting of custom HKP server
|
||||||
|
## Fixed
|
||||||
|
- Render error messages when error is object
|
||||||
|
|
||||||
## [2.3.4] - 2021-01-02
|
## [2.3.4] - 2021-01-02
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
1
index.js
1
index.js
|
@ -44,6 +44,7 @@ app.set('keyoxide_version', packageData.version);
|
||||||
app.set('onion_url', process.env.ONION_URL);
|
app.set('onion_url', process.env.ONION_URL);
|
||||||
|
|
||||||
app.use('/favicon.svg', express.static('favicon.svg'));
|
app.use('/favicon.svg', express.static('favicon.svg'));
|
||||||
|
app.use('/robots.txt', express.static('robots.txt'));
|
||||||
|
|
||||||
app.use(stringReplace({
|
app.use(stringReplace({
|
||||||
PLACEHOLDER__XMPP_VCARD_SERVER_DOMAIN: process.env.XMPP_VCARD_SERVER_DOMAIN || 'xmpp-vcard.keyoxide.org'
|
PLACEHOLDER__XMPP_VCARD_SERVER_DOMAIN: process.env.XMPP_VCARD_SERVER_DOMAIN || 'xmpp-vcard.keyoxide.org'
|
||||||
|
|
6
robots.txt
Normal file
6
robots.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
User-agent: *
|
||||||
|
Allow: /$
|
||||||
|
Allow: /guides
|
||||||
|
Allow: /getting-started
|
||||||
|
Allow: /faq
|
||||||
|
Disallow: /
|
|
@ -2,6 +2,7 @@ doctype html
|
||||||
head
|
head
|
||||||
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')
|
||||||
|
meta(name='robots' content='noindex')
|
||||||
link(rel='shortcut icon' href='/favicon.svg')
|
link(rel='shortcut icon' href='/favicon.svg')
|
||||||
title Keyoxide
|
title Keyoxide
|
||||||
link(rel='stylesheet' href='/static/styles.css')
|
link(rel='stylesheet' href='/static/styles.css')
|
||||||
|
|
Loading…
Reference in a new issue