<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- 静态页面 sitemap -->
  <sitemap>
    <loc>https://jihu.xinoutech.com/sitemap.xml</loc>
    <lastmod>2026-02-10</lastmod>
  </sitemap>

  <!--
  动态内容 sitemap（需要服务端动态生成）
  建议在服务端实现以下 sitemap：
  -->

  <!--
  <sitemap>
    <loc>https://jihu.xinoutech.com/sitemap-posts.xml</loc>
    <lastmod>2026-02-10</lastmod>
  </sitemap>

  <sitemap>
    <loc>https://jihu.xinoutech.com/sitemap-users.xml</loc>
    <lastmod>2026-02-10</lastmod>
  </sitemap>
  -->

  <!--
  实现动态 sitemap 的建议：

  1. 在服务端创建 API 端点：
     - GET /sitemap-posts.xml - 列出所有帖子/详情页
     - GET /sitemap-users.xml - 列出所有公开用户页
     - GET /sitemap-categories.xml - 列出分类页面

  2. 每个 sitemap 文件最多包含 50,000 个 URL
  3. 定期更新（可以设置定时任务每天更新）
  4. 使用缓存减少数据库查询压力

  5. Node.js 示例代码（Express/Koa）：

  app.get('/sitemap-posts.xml', async (req, res) => {
    const posts = await db.getPosts({ limit: 50000 });
    const xml = generateSitemapXML(posts);
    res.header('Content-Type', 'application/xml');
    res.send(xml);
  });
  -->

</sitemapindex>
