I edited straight from VS Code - I didn't know that made any difference, let me try from TW and restart the server. Thank you!
On Thursday, May 14, 2020 at 2:11:44 PM UTC+1, Saq Imtiaz wrote: > > @anne-laure I can't take a look at the code just yet, but have you made > sure to start and stop the node server again? (This assumes you edited via > TiddlyWiki and not the file directly in a text editor) > > On Thursday, May 14, 2020 at 1:34:05 PM UTC+2, Anne-Laure Le Cunff wrote: >> >> I managed to make it work but my sitemap >> <https://www.mentalnodes.com/sitemap.xml> won't sanitize the links. >> >> Inside sitemapentries.js.tid I changed this part: >> >> *x += "\t\t<loc>" + server + element.title.replace(/ /g,"%2520") + >> ".html</loc>\n";* >> >> >> To this: >> >> *x += "\t\t<loc>" + server + >> element.title.replace(/[\s]/gi,'-').replace(/[^a-z0-9\-.+]/gi,'') + >> ".html</loc>\n";* >> >> >> But I don't see any changes in the final output. >> >> Does anyone have any idea what I'm doing wrong here? >> >> Thank you! >> >> >> >> On Sunday, April 26, 2020 at 3:26:45 PM UTC+1, Anne-Laure Le Cunff wrote: >>> >>> Ha, I used this <https://github.com/dullroar/TW5-sitemap> but looks >>> like I missed some steps! I somehow thought it was a native functionality. >>> Thank you! >>> >>> On Sunday, April 26, 2020 at 11:39:29 AM UTC+1, Saq Imtiaz wrote: >>>> >>>> What plugin are you using for the sitemap? As far as I am aware, there >>>> is no built in support in TiddlyWiki for generating a sitemap. >>>> >>>> Regards, >>>> Saq >>>> >>>> On Saturday, April 25, 2020 at 7:44:07 PM UTC+2, Anne-Laure Le Cunff >>>> wrote: >>>>> >>>>> Hi everyone, >>>>> >>>>> I added the following command to my build.sh file in order to generate >>>>> a sitemap of my TiddlyWiki static website: >>>>> >>>>> --rendertiddler sitemap sitemap.xml text/plain >>>>> >>>>> >>>>> So my full render command looks like this now: >>>>> >>>>> tiddlywiki --rendertiddlers [!is[system]] >>>>> $:/ness_labs/templates/static.tiddler.html static text/plain >>>>> --rendertiddler $:/ness_labs/templates/static.template.css >>>>> static/static.css text/plain --rendertiddler sitemap sitemap.xml >>>>> text/plain >>>>> >>>>> >>>>> I do get a sitemap.xml file, but it's empty. Is there anything else I >>>>> should do beside using this command? >>>>> >>>>> (all of this will be going into a SEO guide for TW btw!) >>>>> >>>>> Thank you! >>>>> Anne-Laure. >>>>> >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/811ff118-f19d-4280-b246-6427e2f5954c%40googlegroups.com.