no-css-blog
Advanced tools
Comparing version 0.1.4 to 0.1.5
11
index.js
@@ -123,4 +123,15 @@ #!/usr/bin/env node | ||
// Sitemap | ||
write( | ||
'build/sitemap.xml', | ||
`<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">${posts | ||
.map( | ||
(post) => | ||
`<url><loc>https://blog.yuru.cam/${post.tag}/${post.post.substring(11)}.html</loc><lastmod>${post.post.substring(0, 10)}</lastmod></url>`, | ||
) | ||
.join('')}</urlset>`, | ||
); | ||
// -------------------------------------------- // | ||
console.log('Done!'); |
{ | ||
"name": "no-css-blog", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A tool to generate a blog without CSS", | ||
@@ -5,0 +5,0 @@ "author": "rhea-so", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5775
115