From 56b715cd3f9686c71900772e6b6abd3c8bc20bdd Mon Sep 17 00:00:00 2001 From: benweet Date: Thu, 1 Feb 2018 23:53:51 +0000 Subject: [PATCH] Added sitemap.xml and google html tag. --- Dockerfile | 2 +- server/index.js | 2 ++ static/landing/index.html | 23 +++++++++++++++++++++-- static/sitemap.xml | 23 +++++++++++++++++++++++ 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 static/sitemap.xml diff --git a/Dockerfile b/Dockerfile index 3d936245..ccd975ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN mkdir -p /opt/stackedit/stackedit_v4 WORKDIR /opt/stackedit/stackedit_v4 ENV SERVE_V4 true -ENV V4_VERSION 4.3.21 +ENV V4_VERSION 4.3.22 RUN npm pack stackedit@$V4_VERSION \ && tar xzf stackedit-*.tgz --strip 1 \ && yarn \ diff --git a/server/index.js b/server/index.js index fb159f17..55889047 100644 --- a/server/index.js +++ b/server/index.js @@ -41,6 +41,8 @@ module.exports = (app, serveV4) => { // Serve landing.html app.get('/', (req, res) => res.sendFile(resolvePath('static/landing/index.html'))); + // Serve sitemap.xml + app.get('/sitemap.xml', (req, res) => res.sendFile(resolvePath('static/sitemap.xml'))); // Serve callback.html app.get('/oauth2/callback', (req, res) => res.sendFile(resolvePath('static/oauth2/callback.html'))); // Google Drive action receiver diff --git a/static/landing/index.html b/static/landing/index.html index 23e713b7..d22aad8e 100644 --- a/static/landing/index.html +++ b/static/landing/index.html @@ -12,6 +12,7 @@ +