#!/bin/bash # Skript zum Aktualisieren des lastmod-Datums in der Sitemap SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SITEMAP_FILE="${SCRIPT_DIR}/frontend/public/sitemap.xml" TODAY=$(date +%Y-%m-%d) echo "=== Sitemap aktualisieren ===" echo "" if [ ! -f "$SITEMAP_FILE" ]; then echo "✗ Sitemap nicht gefunden: $SITEMAP_FILE" exit 1 fi echo "Aktualisiere lastmod-Datum auf: $TODAY" URLS=( "https://tt-tagebuch.de/" "https://tt-tagebuch.de/impressum" "https://tt-tagebuch.de/vereinssoftware-tischtennis" "https://tt-tagebuch.de/mitgliederverwaltung-verein" "https://tt-tagebuch.de/trainingsplanung-tischtennis" "https://tt-tagebuch.de/turniersoftware-tischtennis" "https://tt-tagebuch.de/datenschutz" ) cat > "$SITEMAP_FILE" < ${URLS[0]} ${TODAY} weekly 1.0 ${URLS[1]} ${TODAY} yearly 0.3 ${URLS[2]} ${TODAY} monthly 0.8 ${URLS[3]} ${TODAY} monthly 0.8 ${URLS[4]} ${TODAY} monthly 0.8 ${URLS[5]} ${TODAY} monthly 0.8 ${URLS[6]} ${TODAY} yearly 0.3 EOF echo "✓ Sitemap aktualisiert" echo "" echo "=== Nächste Schritte ===" echo "1. Frontend neu bauen (falls nötig):" echo " cd frontend && npm run build" echo "" echo "2. Sitemap in Google Search Console einreichen:" echo " https://search.google.com/search-console" echo " -> Sitemaps -> Neue Sitemap hinzufügen" echo " -> URL eingeben: https://tt-tagebuch.de/sitemap.xml" echo "" echo "3. Sitemap testen:" echo " curl https://tt-tagebuch.de/sitemap.xml"