zerodevx / static-sitemap-cli

CLI to generate XML sitemaps for static sites from local filesystem
ISC License
22 stars 3 forks source link

Output malformed on non-root `--base` #15

Closed zerodevx closed 2 years ago

zerodevx commented 2 years ago

If --base is not a root domain, and is input without the trailing slash, the output is malformed. Eg:

$ sscli -b https://x.com/foo -r dist

generates:

https://x.com/fooindex