<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://hosting-guide.ru/</loc>
    <lastmod>2026-10-12</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://hosting-guide.ru/blog.php</loc>
    <lastmod>2026-10-12</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://hosting-guide.ru/privacy.php</loc>
    <lastmod>2026-10-11</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>
  <!-- Статьи блога добавляются автоматически скриптом ниже -->
  <?php
  $dataFile = __DIR__ . '/data/articles.json';
  if (file_exists($dataFile)) {
      $articles = json_decode(file_get_contents($dataFile), true);
      foreach ($articles as $art) {
          echo '  <url>
    <loc>https://hosting-guide.ru/article.php?slug=' . htmlspecialchars($art['slug']) . '</loc>
    <lastmod>' . date('Y-m-d', strtotime($art['date'])) . '</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>' . "\n";
      }
  }
  ?>
</urlset>