Skip to content

Commit

Permalink
Correct noscript fallback for Empty Edition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeremyredhead authored Jan 31, 2025
1 parent 0219af6 commit a0d3406
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions editions/tw5.com/tiddlers/system/static.content.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,4 +23,4 @@ It looks like this browser doesn't run JavaScript. You can use one of these stat

{{TiddlyWiki}}

</$reveal>
<% endif %>

0 comments on commit a0d3406

Please # to comment.