From 33f40c47c68d8148d7ff91abb3655a7df2f3d5b3 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 7 Feb 2022 16:53:36 +0000 Subject: [PATCH] Use code-body: yes for more templates Fixes #6444 --- editions/prerelease/tiddlers/system/download-empty.tid | 1 + .../demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid | 1 + .../CustomStoryTiddlerTemplateDemo.tid/Template.tid | 1 + .../CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid | 1 + editions/tw5.com/tiddlers/system/download-empty.tid | 1 + themes/tiddlywiki/vanilla/base.tid | 1 + themes/tiddlywiki/vanilla/sticky.tid | 1 + 7 files changed, 7 insertions(+) diff --git a/editions/prerelease/tiddlers/system/download-empty.tid b/editions/prerelease/tiddlers/system/download-empty.tid index 9e0c48c4f..2c0eaa259 100644 --- a/editions/prerelease/tiddlers/system/download-empty.tid +++ b/editions/prerelease/tiddlers/system/download-empty.tid @@ -1,4 +1,5 @@ title: $:/editions/tw5.com/download-empty +code-body: yes \define saveTiddlerFilter() [[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] [[$:/config/OfficialPluginLibrary]] +[sort[title]] diff --git a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid index c0b812f8f..ac3a4f8eb 100644 --- a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +++ b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid @@ -1,5 +1,6 @@ title: $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Styles tags: $:/tags/Stylesheet +code-body: yes .tc-custom-tiddler-template { border: 3px solid <>; diff --git a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid index bda589174..9f30274c4 100644 --- a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid +++ b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid @@ -1,4 +1,5 @@ title: $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Template +code-body: yes \define list-item-styles() transform: translate($(left)$%,$(top)$%) scale(0.3) rotate($(angle)$deg); diff --git a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid index dddb3d62a..cdbccb2b6 100644 --- a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid +++ b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid @@ -1,5 +1,6 @@ title: $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Filter tags: $:/tags/StoryTiddlerTemplateFilter list-before: $:/config/StoryTiddlerTemplateFilters/default +code-body: yes [tag[$:/tags/TiddlerList]then[$:/_tw5.com/CustomStoryTiddlerTemplateDemo/Template]] diff --git a/editions/tw5.com/tiddlers/system/download-empty.tid b/editions/tw5.com/tiddlers/system/download-empty.tid index e34226189..055fa2022 100644 --- a/editions/tw5.com/tiddlers/system/download-empty.tid +++ b/editions/tw5.com/tiddlers/system/download-empty.tid @@ -1,4 +1,5 @@ title: $:/editions/tw5.com/download-empty +code-body: yes \define saveTiddlerFilter() [[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 0c9a1b9cd..83798d8df 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1,5 +1,6 @@ title: $:/themes/tiddlywiki/vanilla/base tags: [[$:/tags/Stylesheet]] +code-body: yes \define custom-background-datauri() <$set name="background" value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}> diff --git a/themes/tiddlywiki/vanilla/sticky.tid b/themes/tiddlywiki/vanilla/sticky.tid index 545440dd7..f7c174fd6 100644 --- a/themes/tiddlywiki/vanilla/sticky.tid +++ b/themes/tiddlywiki/vanilla/sticky.tid @@ -1,4 +1,5 @@ title: $:/themes/tiddlywiki/vanilla/sticky +code-body: yes <$reveal state="$:/themes/tiddlywiki/vanilla/options/stickytitles" type="match" text="yes"> ``