Files
trainingstagebuch/update-sitemap.sh
Torsten Schulz (local) 9d023b534d feat(SEO, Sitemap, Routing): enhance SEO and sitemap for new features
- Updated update-sitemap.sh to include new URLs for Vereinssoftware, Mitgliederverwaltung, Trainingsplanung, and Turniersoftware with appropriate lastmod dates and change frequencies.
- Enhanced server.js and seo.js with SEO configurations for the new pages, ensuring proper indexing and descriptions.
- Added new routes in router.js for the additional features, improving navigation and user access.
- Updated Home.vue to include links to the new features, enhancing user engagement and visibility.
2026-03-27 11:42:11 +01:00

92 lines
2.5 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/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" <<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>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>${URLS[3]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>${URLS[4]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>${URLS[5]}</loc>
<lastmod>${TODAY}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>${URLS[6]}</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"