2026-04-15 15:59:46 +02:00
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
# HTTPS forcieren
|
|
|
|
|
RewriteCond %{HTTPS} !=on
|
|
|
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
|
|
spa: startseite + archiv + impressum + menü + assets für cutover
Startseite (+page.svelte) komplett überarbeitet:
- Hero mit lokalem Profilbild (WebP aus static/, schneller als
kind:0-roundtrip), Begrüßung "Hi Willkommen auf meinem Blog 🤗",
About/Website aus kind:0
- Social-Icons-Leiste (Nostr/Mastodon/Bluesky/LinkedIn/ORCID/Mail)
als inline-SVG, monochrom via currentColor, hover färbt blau
- Nostr-Icon von satscoffee/nostr_icons (outline, CC0), die anderen
stilisiert als vereinfachte Brand-Icons
- Neueste 5 Posts + Archiv-Link
Archiv-Route (/archiv/): alle Posts, nach Jahr gruppiert.
Impressum (/impressum/): static-page, rendert content/impressum.md
(via vite ?raw-import), bleibt aus nostr-feeds draußen. Frontmatter-
parser toleriert trailing-spaces auf --- zeilen.
Menü im Layout: sticky header mit brand + 3 links (Home, Archiv,
Impressum), aktiv-state via akzent-farbe. Footer mit © + Impressum
+ "Nostr-basiert"-hinweis.
Assets: profilbild und favicons aus dem hugo-static (repo-root) nach
app/static/ übernommen, favicon-links in app.html ergänzt.
NIP-05: .well-known/nostr.json in app/static angelegt mit CORS-header
via .htaccess, damit "joerglohrer@joerg-lohrer.de" nach cutover
verifizierbar bleibt.
E2E-Tests angepasst an neue hero/navigation-struktur, 29/29 unit + 4/4
e2e grün.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:35:05 +02:00
|
|
|
# NIP-05-Verifikation: CORS-Header für .well-known/nostr.json, sonst
|
|
|
|
|
# lehnen nostr-clients die verifizierung ab.
|
|
|
|
|
<FilesMatch "nostr\.json$">
|
|
|
|
|
Header set Access-Control-Allow-Origin "*"
|
|
|
|
|
Header set Content-Type "application/json"
|
|
|
|
|
</FilesMatch>
|
|
|
|
|
|
2026-04-15 15:59:46 +02:00
|
|
|
# Existierende Datei oder Verzeichnis? Direkt ausliefern.
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
|
|
|
RewriteRule ^ - [L]
|
|
|
|
|
|
|
|
|
|
# Alles andere → SPA-Fallback (SvelteKit mit adapter-static)
|
|
|
|
|
RewriteRule ^ /index.html [L]
|