[object Object]

← back to Allnewsdaily

yoloforever C6b (Cody final fix): add robots.txt + sitemap.xml routes + promote visible heading to h1 (drop CSS-clipped h1) — allnewsdaily submit-ready

cadca0fceb75547c5671cf2e7ecaed118037f988 · 2026-08-05 13:40:40 -0700 · Steve

Files touched

Diff

commit cadca0fceb75547c5671cf2e7ecaed118037f988
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Aug 5 13:40:40 2026 -0700

    yoloforever C6b (Cody final fix): add robots.txt + sitemap.xml routes + promote visible heading to h1 (drop CSS-clipped h1) — allnewsdaily submit-ready
---
 public/index.html |  3 +--
 server.js         | 10 ++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/public/index.html b/public/index.html
index 6eeb673..e6d8725 100644
--- a/public/index.html
+++ b/public/index.html
@@ -119,7 +119,6 @@
   </style>
 </head>
 <body>
-<h1 style="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0">All News Daily</h1>
   <header>
     <div class="bar">
       <div class="brand"><span class="dot"></span>All News Daily<small>global newsroom directory</small></div>
@@ -145,7 +144,7 @@
 
   <main>
     <section class="intro" style="max-width:720px;margin:0 auto 22px">
-      <h2 style="font-size:22px;line-height:1.25;margin:0 0 8px;color:var(--fg)">A global newsroom directory — built to help you read the news critically</h2>
+      <h1 style="font-size:22px;line-height:1.25;margin:0 0 8px;color:var(--fg)">A global newsroom directory — built to help you read the news critically</h1>
       <p style="color:var(--fg-dim);font-size:15px;line-height:1.65;margin:0">
         <strong style="color:var(--fg)">All News Daily</strong> is an independent, continuously-updated directory of the world's newsrooms — searchable by region, language, and topic, with live-status indicators. We don't republish anyone's reporting; we point you to the primary sources and teach you how to weigh them. New here? Start with our <a href="/guides" style="color:var(--accent)">news-literacy guides</a> on evaluating a source, reading past media bias, and verifying a story before you share it.</p>
     </section>
diff --git a/server.js b/server.js
index 2d216f8..7d4806e 100644
--- a/server.js
+++ b/server.js
@@ -51,6 +51,16 @@ app.get('/', (req, res) => {
 
 app.get('/ads.txt', (_q, res) => res.type('text/plain').send('google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0\n'));
 
+app.get('/robots.txt', (_q, res) => res.type('text/plain').send('User-agent: *\nAllow: /\nSitemap: https://allnewsdaily.com/sitemap.xml\n'));
+
+app.get('/sitemap.xml', (_q, res) => {
+  const B = 'https://allnewsdaily.com';
+  const urls = ['/', '/guides', '/about', '/contact', '/privacy']
+    .concat(GUIDES.map((g) => `/guides/${g.slug}`))
+    .map((u) => `  <url><loc>${B}${u}</loc></url>`).join('\n');
+  res.type('application/xml').send(`<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n${urls}\n</urlset>\n`);
+});
+
 // ---- Original editorial content (news-literacy guides) --------------------
 // Turns the site from a bare outbound-link directory into a real publisher.
 const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));

← e4d7196 fix .deploy.conf HEALTH_URL → :9962 (Kamatera port; :9788 wa  ·  back to Allnewsdaily  ·  yoloforever C7 (DTD-A unanimous): server-present homepage co d9c1a51 →