From 8ba1fefb6266935a7c7ffe84b5d5692a1113322e Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Sat, 22 Aug 2026 11:45:09 +0000 Subject: [PATCH] feat: serve a static intro paragraph to crawlers and noscript browsers The block lives inside #app and is removed right before mount, since Svelte's mount() appends rather than replaces. --- index.html | 14 +++++++++++++- src/main.ts | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1c6904c..130fdf4 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,19 @@ -
+
+ +
+

EdenText — free word processor in your browser

+

+ EdenText is a web-based, powerful word processor for everything from quick notes to + full-length books. No server, no account — your documents never leave your computer. + It opens and saves real .odt and .docx files, works offline + as a slim browser app, and is free and open source. +

+

Source code on GitHub

+
+
diff --git a/src/main.ts b/src/main.ts index 51795dc..226541c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,6 +23,9 @@ if (import.meta.env.PROD && 'serviceWorker' in navigator) { }); } +// Drop the static crawler copy (index.html) — mount() appends instead of replacing +document.getElementById('static-intro')?.remove(); + const app = mount(App, { target: document.getElementById('app')! }); export default app;