Wess: Two issues:
1. Capitalization https://nurselog.online/Mind-Garden.html and not https://nurselog.online/mind-garden.html <https://nurselog.online/Mind-Garden.html> Avoid this by adding lowercase[] to both filters, eg [lowercase[]split[ ]join[-]encodeuricomponent[]addsuffix[.html]] Currently it looks like you have the lowercase operator in the file name filter but not the one for links. 2. You need the .html at the end of the URL's unless you set up an .htaccess file on your host to get around that. I am also seeing some different handling of the . character in tiddler titles. I highly suggest you change the new slugify operator that Jeremy has posted. Otherwise make sure that your filters for the file name and the link are doing the same thing. If still in doubt, post your exact code for the static export. On Saturday, May 9, 2020 at 7:32:29 PM UTC+2, C. Wess Daniels wrote: > > Hi all, > > I am following along and the export part is working: > > [image: Screen Shot 2020-05-09 at 8.08.01 AM.png] > > But the site won’t load with the links: > > [image: Screen Shot 2020-05-09 at 8.11.13 AM.png] > > Saq - I think I followed the steps correctly from your earlier post. > 1. Edited the zip-render-file > 2. Created a tiddler titled $:/nurselog/Macro/exportlink, added the > $:/tags/Macro and code. > > [image: Screen Shot 2020-05-09 at 8.14.09 AM.png] > > 3. I went in and restored $:/core/templates/server/static.tiddler.htm to > \define > tv-wikilink-template() $uri_encoded$ > 4. I deleted $:/nurselog/static/export/get-export-link.js > > (I didn’t use the new code for the tv-fiter-export-link because it was > customized for Edgaras. > > But I’m still getting a dead site. > > Any idea what I’m doing wrong? > > Thanks! > > Wess > > > On Saturday, May 2, 2020 at 4:36:01 PM UTC-4, Jeremy Ruston wrote: >> >> A disadvantage for some users of TiddlyWiki’s static site generation >> capabilities is the requirement to use Node.js. I’m therefore pleased to >> announce an update to the JSZip plugin that makes it practical to render >> medium sized static sites in the browser, without needing to use Node.js. >> >> >> https://github.com/Jermolene/TiddlyWiki5/commit/6a0ff7db1807f45b73061ced82f5a85f1a529bbf >> >> The updated plugin adds a handful of messages that can be used in the >> browser to: >> >> * create a blank ZIP file as a tiddler of type "application/zip” >> * add text files to a ZIP tiddler >> * download a ZIP tiddler as a .zip file >> >> To try it out, visit the prerelease and review the docs: >> >> https://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Fjszip >> <https://tiddlywiki.com/prerelease/#$:/plugins/tiddlywiki/jszip> >> >> The complete code to save a static site looks like this: >> >> \define actions-render-static-site() >> <$action-sendmessage $message="tm-zip-create" >> $param="$:/temp/_ZipTiddler"/> >> <$list filter="[all[tiddlers]!is[system]limit[100]]"> >> <$action-sendmessage $message="tm-zip-render-file" >> $param="$:/temp/_ZipTiddler" filename={{{ >> [<currentTiddler>encodeuricomponent[]addsuffix[.html]] }}} >> tiddler=<<currentTiddler>> >> template="$:/core/templates/static.tiddler.html"/> >> </$list> >> <$action-sendmessage $message="tm-zip-render-file" >> $param="$:/temp/_ZipTiddler" filename="static.css" >> template="$:/core/templates/static.template.css"/> >> <$action-sendmessage $message="tm-zip-download" >> $param="$:/temp/_ZipTiddler" filename="myzip.zip"/> >> \end >> >> <$button actions=<<actions-render-static-site>>> >> Render site >> </$button> >> >> >> Performance is a bit sluggish with large zip files (>2MB on my desktop >> machine) but otherwise it seems to work well. I’ve got an idea for >> improving performance that I’ll work on if I have time. >> >> Questions and comments welcome. >> >> Best wishes >> >> Jeremy >> > -- 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/eeec5a8a-2054-4a50-81fa-0d40aeccd687%40googlegroups.com.

