From a0d340676ba97ddb50c2c858471062b7968db1fe Mon Sep 17 00:00:00 2001 From: "j. redhead" Date: Fri, 31 Jan 2025 07:00:50 -0600 Subject: [PATCH] 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. --- editions/tw5.com/tiddlers/system/static.content.tid | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/system/static.content.tid b/editions/tw5.com/tiddlers/system/static.content.tid index 13ab4c92604..130c3d2a3cd 100644 --- a/editions/tw5.com/tiddlers/system/static.content.tid +++ b/editions/tw5.com/tiddlers/system/static.content.tid @@ -2,14 +2,18 @@ title: $:/core/templates/static.content \define tv-wikilink-template() https://tiddlywiki.com/static/$uri_doubleencoded$.html +<% if [match[yes]] %> + +<$transclude tiddler="$:/core" subtiddler="$:/core/templates/static.content"/> + +<% else %> + -Mastodon +~TiddlyWiki on Mastodon -<$reveal default="yes" text=<> 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}} - +<% endif %>