Skip to content

Commit 2974f47

Browse files
authored
Update shell.handlebars removing font_custom
1 parent 98e4370 commit 2974f47

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sqlpage/templates/shell.handlebars

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
{{/if}}
1717
{{/each}}
1818

19-
{{!-- Ensure font_custom is an array --}}
20-
{{#if font_custom}}
21-
{{#if (not (isArray font_custom))}}
19+
{{!-- Ensure font is an array --}}
20+
{{#if font}}
21+
{{#if (not (isArray font))}}
2222
{{!-- Wrap single font string in an array --}}
23-
{{#set "font_custom" (array font_custom)}}
23+
{{#set "font" (array font)}}
2424
{{/if}}
2525
{{/if}}
2626

27-
{{#if font_custom}}
27+
{{#if font}}
2828
<style>
29-
{{#each font_custom}}
29+
{{#each font}}
3030
{{#if (startsWith this "/")}}
3131
@font-face {
3232
font-family: '{{this}}_custom';
@@ -42,15 +42,15 @@
4242
</style>
4343

4444
{{!-- Handling Google Fonts --}}
45-
{{#each (filter font_custom (lambda font (not (startsWith font "/"))))}}
45+
{{#each (filter font (lambda font (not (startsWith font "/"))))}}
4646
<link rel="preconnect" href="https://fonts.googleapis.com">
4747
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
4848
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family={{this}}&display=fallback">
4949
{{/each}}
5050

5151
<style>
5252
:root {
53-
{{#each font_custom}}
53+
{{#each font}}
5454
{{!-- Local fonts will have _custom appended to their names --}}
5555
{{#if (startsWith this "/")}}
5656
--tblr-font-{{replace this "/" "-"}}: '{{this}}_custom', Arial, sans;

0 commit comments

Comments
 (0)