← back to Greenwallcoverings
add /about route (serves history.html) so footer + corner-nav link resolves; list content pages in sitemap
887e00c7fa158856d69675dac2c7638e4c9cde9f · 2026-05-18 20:43:15 -0700 · Steve Abrams
Files touched
Diff
commit 887e00c7fa158856d69675dac2c7638e4c9cde9f
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 18 20:43:15 2026 -0700
add /about route (serves history.html) so footer + corner-nav link resolves; list content pages in sitemap
---
server.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 47a3eb3..d9f546a 100644
--- a/server.js
+++ b/server.js
@@ -181,6 +181,9 @@ app.get('/sample/:handle', (req, res) => {
res.redirect(302, p.product_url || `${DW_SHOPIFY}/products/${encodeURIComponent(p.handle)}#sample`);
});
+// /about → served by the "short history" page (no dedicated about.html exists)
+app.get('/about', (req, res) => res.sendFile(path.join(__dirname, 'public', 'history.html')));
+
// sitemap.xml + robots.txt for SEO
app.get('/robots.txt', (req, res) => {
res.type('text/plain').send(`User-agent: *
@@ -189,7 +192,7 @@ Sitemap: https://greenwallcoverings.com/sitemap.xml
`);
});
app.get('/sitemap.xml', (req, res) => {
- const urls = ['/'];
+ const urls = ['/', '/history.html', '/sourcing.html', '/care.html', '/trade.html', '/vocabulary.html'];
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${urls.map(u => ` <url><loc>https://greenwallcoverings.com${u}</loc><changefreq>weekly</changefreq></url>`).join('\n')}
← c0c27c8 untrack 19 stale .bak/.pre- snapshots, extend .gitignore to
·
back to Greenwallcoverings
·
remove dead PRODUCTS_ORIG var and unused __products_niche_ap 84fcafc →