Added sitemap.xml gen#20
Conversation
Added sitemap.xml gen
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
I signed it! |
|
CLAs look good, thanks! |
| var p = ""; | ||
| crawledPages.forEach(element => { | ||
| var n = "\t\t<url>\n"; | ||
| n = n + "\t\t\t<loc>\n"; |
There was a problem hiding this comment.
Is there a node lib we could use instead of manually crafting the xml?
|
|
||
| function buildSitemap() { | ||
| if (SITEMAP && crawledPages) { | ||
| var p = ""; |
|
Interested in this! |
|
Requested changed are done. |
|
This one fell off my radar, thought I'd get it done. Hope that helps. |
|
Just a note, the sitemap generator might need a filter for anchor same page links (aka My quick and dirty fix would be to just add |
Added sitemap.xml gen