From fcb92e8cf0bf4223978d1e7822a67cf937bf8432 Mon Sep 17 00:00:00 2001 From: Mat Manna Date: Mon, 4 May 2026 06:16:16 -0400 Subject: [PATCH] should be good --- _includes/analytics.html | 7 +++++-- _layouts/default.html | 2 +- scripts/post-build.js | 18 +++++++++--------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/_includes/analytics.html b/_includes/analytics.html index 39a84dd..45a4c4d 100644 --- a/_includes/analytics.html +++ b/_includes/analytics.html @@ -1,2 +1,5 @@ - \ No newline at end of file + diff --git a/_layouts/default.html b/_layouts/default.html index bc4b6e1..b44d018 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -25,7 +25,7 @@ layout: compress {% if site.data.buttons.size > 0 %}
+ style="max-width: 80ch;"> {% for button in site.data.buttons %} ])', 'g'); html = html.replace(arbiRegex, '.' + short); - + // Dark + arbitrary if (orig.startsWith('dark:')) { const baseClass = orig.slice(5); - const cssClass2 = baseClass.replace(/\[/g, '\\x5c\\x5b').replace(/\]/g, '\\x5c\\x5d'); + const cssClass2 = baseClass.replace(/\[/g, '\\x5c\\x5b').replace(/\]/g, '\\x5c\\x5d').replace(/%/g, '\\x5c%'); const darkArbiPattern = '.dark\\:' + cssClass2; const darkArbiRegex = new RegExp(darkArbiPattern + '(?=[{:, >])', 'g'); html = html.replace(darkArbiRegex, '.' + short); } - + // Responsive + arbitrary if (orig.match(/^(sm|md|lg|xl|2xl):/)) { const baseClass = orig.replace(/^(sm|md|lg|xl|2xl):/, ''); const prefix = orig.match(/^(sm|md|lg|xl|2xl):/)[1]; - const cssClass2 = baseClass.replace(/\[/g, '\\x5c\\x5b').replace(/\]/g, '\\x5c\\x5d'); + const cssClass2 = baseClass.replace(/\[/g, '\\x5c\\x5b').replace(/\]/g, '\\x5c\\x5d').replace(/%/g, '\\x5c%'); const respArbiPattern = '.' + prefix + '\\:' + cssClass2; const respArbiRegex = new RegExp(respArbiPattern + '(?=[{:, >])', 'g'); html = html.replace(respArbiRegex, '.' + short); -- 2.51.2