From 036c16728bb85e417395cb05889007ff2f704f93 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 12 Nov 2024 20:51:16 +0000 Subject: [PATCH] Add badge for 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 %> +