staticUrls.js
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* pc/wap站静态url 用于站点地图
*
*/
const moment = require('moment');
const today = moment().format('Y-M-D');
module.exports = {
www: {
// 频道
channel: {
loc: ['https:www.yohobuy.com/', 'https://www.yohobuy.com/girls/', 'https://www.yohobuy.com/kids/', 'https://www.yohobuy.com/lifestyle/'],
lastmod: today,
changefreq: 'daily',
priority: 0.8
},
// 品牌一览
brands: {
loc: ['https://www.yohobuy.com/boys-brands/', 'https://www.yohobuy.com/girls-brands/', 'https://www.yohobuy.com/kids-brands/', 'https://www.yohobuy.com/lifestyle-brands/'],
lastmod: today,
changefreq: 'daily',
priority: 0.5
},
// 领券中心
coupon: {
loc: ['https://www.yohobuy.com/coupon/'],
lastmod: today,
changefreq: 'weekly',
priority: 0.3
},
// sale
salse: {
loc: ['https://www.yohobuy.com/product/boys-sale/', 'https://www.yohobuy.com/product/girls-sale/', 'https://www.yohobuy.com/product/kids-sale/', 'https://www.yohobuy.com/product/lifestyle-sale/'],
lastmod: today,
changefreq: 'daily',
priority: 0.3
}
},
list: {
// 新品到着
new: {
loc: ['https://list.yohobuy.com/boys-new/', 'https://list.yohobuy.com/girls-new/', 'https://list.yohobuy.com/kids-new/', 'https://list.yohobuy.com/lifestyle-new/'],
lastmod: today,
changefreq: 'daily',
priority: 0.5
},
// 分类列表
category: {
loc: [],
lastmod: today,
changefreq: 'daily',
priority: 0.3
}
},
// 搜索列表
search: {
loc: ['https://search.yohobuy.com/'],
lastmod: today,
changefreq: 'daily',
priority: 0.3
},
// 逛 编辑列表/标签列表/逛详情动态添加
guang: {
loc: ['https://guang.yohobuy.com/boys/', 'https://guang.yohobuy.com/girls/', 'https://guang.yohobuy.com/kids/', 'https://guang.yohobuy.com/lifestyle/'],
lastmod: today,
changefreq: 'daily',
priority: 0.3
},
// 商品详情动态添加
item: {
loc: [],
lastmod: today,
changefreq: 'daily',
priority: 0.3
}
};