diff --git a/core/wiki/functions/themes.tid b/core/wiki/functions/themes.tid index a507a628d..1eebfdef6 100644 --- a/core/wiki/functions/themes.tid +++ b/core/wiki/functions/themes.tid @@ -17,7 +17,7 @@ tags: $:/tags/Global \function get.theme(metric) [function[get.base.theme],{$:/theme},addsuffix[/metrics/]addsuffix!is[missing]] :else[function[get.base.theme],{$:/theme},addsuffix[/metrics/]addsuffixis[shadow]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] -\function set.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},is[shadow]] :else[function[get.base.theme.metric],{$:/theme},!is[shadow]!is[missing]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] +\function set.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},first[]is[shadow]] :else[function[get.base.theme.metric],{$:/theme},first[]!is[shadow]!is[missing]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] \function get.base.functions.theme.recursive(theme) [get[dependents]enlist-input[]] :map[function[get.base.functions.theme],]