This commit is contained in:
make
2025-04-22 14:31:25 +08:00
parent 683424b63e
commit 3280e769ba
37 changed files with 1173 additions and 350 deletions

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-main.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
<!-- ...小说总数量/50000 得出 sitemap-books一共有多少个 -->
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-books-1.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-books-2.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
<!-- ...小说总数量/50000 得出 sitemap-books-catalog一共有多少个,每个小说只取一个目录链接,分页不需要加入去 -->
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-books-catalog-1.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-books-catalog-2.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
<!-- ...小说章节取最新50w条 这里生成10个索引文件即可 -->
{for start="1" end="11"}
<sitemap>
<loc>https://www.{$DomainModel->d_domain}/sitemap-chapters-{$i}.xml</loc>
<lastmod>{:date('Y-m-d')}</lastmod>
</sitemap>
{/for}
</sitemapindex>