From 8a7b211a5a52db8ffe1c54a6c70321e050a716c0 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 12 Nov 2024 19:51:39 +0000 Subject: [PATCH] Add a badge that is displayed for the Netlify preview builds --- .../tiddlers/system/netlify-build-badge.tid | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 editions/tw5.com/tiddlers/system/netlify-build-badge.tid diff --git a/editions/tw5.com/tiddlers/system/netlify-build-badge.tid b/editions/tw5.com/tiddlers/system/netlify-build-badge.tid new file mode 100644 index 000000000..b0cd272c0 --- /dev/null +++ b/editions/tw5.com/tiddlers/system/netlify-build-badge.tid @@ -0,0 +1,17 @@ +title: $:/_tw5.com/netlify-build-badge +tags: $:/tags/SideBarSegment +list-after: $:/core/ui/SideBarSegments/site-subtitle + +<% if [{$:/build}prefix[NETLIFY-BUILD]] %> +

+

+
+ Deploys by Netlify +
+
+ This is a preview build of the pull request #<$text text={{{ [{$:/build}split[|]nth[5]] }}}/> +
+
+

+<% endif %> +