export default defineEventHandler((event) => { const pages = [ { url: '/', priority: '1.0', changefreq: 'weekly', images: [{ loc: '/images/team/hero-grassland.jpg', title: '呼伦贝尔草原风光 - 呼籁旅行' }], }, { url: '/faq', priority: '0.95', changefreq: 'weekly', images: [], }, { url: '/products', priority: '0.9', changefreq: 'weekly', images: [{ loc: '/images/mascot/xiaomengma.png', title: '小蒙马夏令营IP形象' }], }, { url: '/about', priority: '0.85', changefreq: 'monthly', images: [ { loc: '/images/team/hero-family.jpg', title: '呼伦贝尔家庭游合影' }, { loc: '/images/team/guide-group.jpg', title: '呼籁旅行领队团队合影' }, { loc: '/images/mascot/mascot-front.png', title: '呼籁旅行吉祥物' }, ], }, { url: '/reviews', priority: '0.8', changefreq: 'weekly', images: [], }, { url: '/contact', priority: '0.8', changefreq: 'monthly', images: [{ loc: '/images/contact/qrcode-wechat.jpg', title: '呼籁旅行微信客服二维码' }], }, { url: '/guides', priority: '0.8', changefreq: 'monthly', images: [], }, { url: '/summer-camp', priority: '0.85', changefreq: 'monthly', images: [ { loc: '/images/summer-camp/river-banner.jpg', title: '小蒙马夏令营河畔活动' }, { loc: '/images/summer-camp/grassland-group.jpg', title: '草原亲子夏令营合影' }, { loc: '/images/summer-camp/birch-group.jpg', title: '白桦林研学活动' }, { loc: '/images/summer-camp/camp-graduation.jpg', title: '夏令营结营仪式' }, ], }, ] const today = new Date().toISOString().split('T')[0] const base = 'https://1814.love' const xml = ` ${pages .map( (p) => ` ${base}${p.url} ${today} ${p.changefreq} ${p.priority}${p.images.map(img => ` ${base}${img.loc} ${img.title} `).join('')} ` ) .join('\n')} ` setResponseHeader(event, 'content-type', 'application/xml') return xml })