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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34261b11-03b8-49dd-9e11-0dddfcdd1508%40googlegroups.com.

Reply via email to