<?php
require __DIR__ . '/includes/common.php';
header('Content-Type: application/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
$paths = ["/", "/video/", "/hot/", "/observe/", "/topics/", "/authors/", "/faq/", "/contact/", "/about/", "/article/video-saishi-jingcai/", "/article/shenghuo-jineng-shipin/", "/article/hangye-guancha-zhoubao/"];
echo "<urlset>\n";
foreach ($paths as $path) {
  echo "  <url>\n";
  echo "    <loc>" . e(site_url($path)) . "</loc>\n";
  echo "    <lastmod>" . date('Y-m-d') . "</lastmod>\n";
  echo "    <changefreq>daily</changefreq>\n";
  echo "    <priority>" . ($path === '/' ? '1.0' : '0.8') . "</priority>\n";
  echo "  </url>\n";
}
echo "</urlset>\n";
?>
