Files
trainingstagebuch/update-sitemap.sh
Torsten Schulz (local) a7d3e5b094 feat(Sitemap, SEO): update sitemap generation and SEO configurations
- Enhanced update-sitemap.sh to generate a new sitemap structure with lastmod dates for additional URLs.
- Updated SEO configurations in server.js and seo.js to allow indexing for impressum and datenschutz pages.
- Introduced a list of noindex prefixes to manage SEO settings dynamically based on route paths.
- Added structured FAQ schema in index.html to improve search engine visibility and user engagement.
2026-03-27 11:22:55 +01:00

64 lines
1.7 KiB
Bash
Executable File

#!/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/datenschutz"
)
cat > "$SITEMAP_FILE" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>${URLS[0]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>${URLS[1]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>yearly</changefreq>
<priority>0.3</priority>
</url>
<url>
<loc>${URLS[2]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>yearly</changefreq>
<priority>0.3</priority>
</url>
</urlset>
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"