1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-25 00:16:52 +00:00

correctly check if theme tiddler exists

This commit is contained in:
BurningTreeC 2024-10-10 09:39:30 +02:00
parent f171a0b6ca
commit e96ff3f48e

View File

@ -4,7 +4,7 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
\define lingo-base() $:/language/ThemeTweaks/
\function get.theme(metric) [{$:/theme}addsuffix[/]addsuffix<metric>!is[missing]] ~[[$:/themes/tiddlywiki/vanilla/]addsuffix<metric>]
\function get.theme(metric) [{$:/theme}addsuffix[/]addsuffix<metric>!is[missing]] ~[{$:/theme}addsuffix[/]addsuffix<metric>is[shadow]] ~[[$:/themes/tiddlywiki/vanilla/]addsuffix<metric>]
\define replacement-text()
[img[$(imageTitle)$]]