File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
{{ /if }}
17
17
{{ /each }}
18
18
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 ))}}
22
22
{{!-- Wrap single font string in an array --}}
23
- {{ #set " font_custom " (array font_custom )}}
23
+ {{ #set " font " (array font )}}
24
24
{{ /if }}
25
25
{{ /if }}
26
26
27
- {{ #if font_custom }}
27
+ {{ #if font }}
28
28
<style >
29
- {{#each font _ custom }}
29
+ {{#each font }}
30
30
{{#if (startsWith this "/")}}
31
31
@font-face {
32
32
font-family : ' {{this}}_custom' ;
42
42
</style >
43
43
44
44
{{!-- Handling Google Fonts --}}
45
- {{ #each (filter font_custom (lambda font (not (startsWith font " /" ))))}}
45
+ {{ #each (filter font (lambda font (not (startsWith font " /" ))))}}
46
46
<link rel =" preconnect" href =" https://fonts.googleapis.com" >
47
47
<link rel =" preconnect" href =" https://fonts.gstatic.com" crossorigin>
48
48
<link rel =" stylesheet" href =" https://fonts.googleapis.com/css2?family={{ this }} &display=fallback" >
49
49
{{ /each }}
50
50
51
51
<style >
52
52
:root {
53
- {{#each font _ custom }}
53
+ {{#each font }}
54
54
{{!-- Local fonts will have _custom appended to their names -- }}
55
55
{{#if (startsWith this "/")}}
56
56
--tblr-font-{{replace this "/" "- "}}: '{{this }}_custom', Arial, sans;
You can’t perform that action at this time.
0 commit comments