<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    
    <!-- Homepage -->
    <url>
        <loc>https://ethnospor.gr/</loc>
        <lastmod>2025-11-26</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>
    
    <!-- Categories -->
    <url>
        <loc>https://ethnospor.gr/category/podosfairo</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <url>
        <loc>https://ethnospor.gr/category/basket</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <url>
        <loc>https://ethnospor.gr/category/volley</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <url>
        <loc>https://ethnospor.gr/category/tennis</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <url>
        <loc>https://ethnospor.gr/category/formula1</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    
    <!-- 
    Note: This is a basic sitemap. 
    For a dynamic sitemap that auto-updates with new articles,
    create a sitemap.php file that generates XML from your database.
    
    Example PHP code for dynamic sitemap:
    
    <?php
    header('Content-Type: application/xml; charset=utf-8');
    require_once 'config.php';
    
    $db = new Database();
    $conn = $db->getConnection();
    
    echo '<?xml version="1.0" encoding="UTF-8"?>';
    echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
    
    // Get all published articles
    $articles = $conn->query("
        SELECT a.slug, a.updated_at, c.slug as category_slug
        FROM articles a
        JOIN categories c ON a.category_id = c.id
        WHERE a.status = 'published'
        ORDER BY a.published_at DESC
    ")->fetchAll();
    
    foreach ($articles as $article) {
        echo '<url>';
        echo '<loc>https://ethnospor.gr/' . $article['category_slug'] . '/' . $article['slug'] . '</loc>';
        echo '<lastmod>' . date('Y-m-d', strtotime($article['updated_at'])) . '</lastmod>';
        echo '<changefreq>weekly</changefreq>';
        echo '<priority>0.8</priority>';
        echo '</url>';
    }
    
    echo '</urlset>';
    ?>
    -->
    
</urlset>
