πŸ“‹ λΈ”λ‘œκ·Έ κ΄€λ¦¬μž

0
전체 κΈ€
0
μΉ΄ν…Œκ³ λ¦¬
0
νƒœκ·Έ
0
평균 SEO

κΈ€ λͺ©λ‘

πŸ“

글이 μ—†μŠ΅λ‹ˆλ‹€. + μƒˆ κΈ€ μΆ”κ°€λ₯Ό 눌러 μ‹œμž‘ν•˜μ„Έμš”.

` : ''; const html = ` ${name} ${config.naver ? `` : ''} ${gaSnippet}

${name}

${config.desc || 'λ‹€μ–‘ν•œ 주제의 글을 κ³΅μœ ν•©λ‹ˆλ‹€.'}

${cats.map(c => ``).join('')}
πŸ”
`; download('index.html', html, 'text/html'); showToast('index.html μ €μž₯ μ™„λ£Œ!'); } // ─── Sitemap ────────────────────────────────────────── function downloadSitemap() { const d = config.domain || 'https://yourdomain.com'; const today = new Date().toISOString().split('T')[0]; const xml = ` ${d}/ ${today} daily 1.0 ${posts.map(p => ` ${d}/posts/${p.slug}.html ${p.date || today} monthly 0.8${p.thumb ? ` ${p.thumb} ${p.title} ` : ''} `).join('\n')} `; download('sitemap.xml', xml, 'application/xml'); showToast('sitemap.xml μ €μž₯ μ™„λ£Œ!'); // Also offer robots.txt hint const robots = `User-agent: * Allow: / Sitemap: ${d}/sitemap.xml # Cloudflare Pages Blog User-agent: Googlebot Allow: / User-agent: Bingbot Allow: / User-agent: Yeti Allow: /`; setTimeout(() => { if (confirm('robots.txt도 ν•¨κ»˜ λ‹€μš΄λ‘œλ“œν• κΉŒμš”?')) { download('robots.txt', robots, 'text/plain'); } }, 500); } // ─── Helpers ────────────────────────────────────────── function download(filename, content, type) { const blob = new Blob([content], { type }); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = filename; a.click(); URL.revokeObjectURL(a.href); } function showToast(msg) { const t = document.getElementById('toast'); t.textContent = msg; t.classList.add('show'); setTimeout(() => t.classList.remove('show'), 2500); } // Init renderTable();