1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-08 19:56:39 +00:00

Correct noscript fallback for Empty Edition

Also slightly improve the Mastodon link text (since it'll be read by people without JS)

Before this patch, if the "built-in" Empty Edition was downloaded then the Mastodon verification link was included, which is wrong.
Not a super big deal since it'll get "flushed out" the first time the user saves, but still confusing.

The mastodon link could've just been moved inside the <$reveal>
but I think it's better to try to achieve parity with tiddlywiki.com/empty.html; 
This commit does not achieve parity but it gets us closer.
This commit is contained in:
j. redhead 2025-01-31 07:00:50 -06:00 committed by GitHub
parent 0219af604b
commit a0d340676b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,14 +2,18 @@ title: $:/core/templates/static.content
\define tv-wikilink-template() https://tiddlywiki.com/static/$uri_doubleencoded$.html
<% if [<savingEmpty>match[yes]] %>
<$transclude tiddler="$:/core" subtiddler="$:/core/templates/static.content"/>
<% else %>
<!-- Mastodon verification -->
<a rel="me" href="https://fosstodon.org/@TiddlyWiki">Mastodon</a>
<a rel="me" href="https://fosstodon.org/@TiddlyWiki">~TiddlyWiki on Mastodon</a>
<!-- For Google, and people without JavaScript-->
<$reveal default="yes" text=<<savingEmpty>> type="nomatch">
It looks like this browser doesn't run JavaScript. You can use one of these static HTML versions to browse the same content:
* https://tiddlywiki.com/static.html - browse individual tiddlers as separate pages
@ -19,4 +23,4 @@ It looks like this browser doesn't run JavaScript. You can use one of these stat
{{TiddlyWiki}}
</$reveal>
<% endif %>