File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 14
14
{{ /if }}
15
15
{{ /each }}
16
16
17
+ {{ #if font }}
18
+ {{ #if (starts_with font " /" )}}
19
+ <style >
20
+ @font-face {
21
+ font-family : ' LocalFont' ;
22
+ src : url (' {{font}}' ) format (' woff2' );
23
+ font-weight : normal ;
24
+ font-style : normal ;
25
+ }
26
+ :root {
27
+ --tblr-font-sans-serif : ' LocalFont' , Arial , sans-serif ;
28
+ }
29
+ </style >
30
+ {{ else }}
31
+ <link rel =" preconnect" href =" https://fonts.googleapis.com" >
32
+ <link rel =" preconnect" href =" https://fonts.gstatic.com" crossorigin>
33
+ <link rel =" stylesheet" href =" https://fonts.googleapis.com/css2?family={{ font }} &display=fallback" >
34
+ <style >
35
+ :root {
36
+ --tblr-font-sans-serif : ' {{font}}' ,
37
+ Arial ,
38
+ sans-serif ;
39
+ }
40
+ </style >
41
+ {{ /if }}
42
+ {{ /if }}
43
+
17
44
<script src =" {{ static_path ' sqlpage.js' }} " defer nonce =" {{ @csp_nonce }} " ></script >
18
45
{{ #each (to_array javascript )}}
19
46
{{ #if this }}
You can’t perform that action at this time.
0 commit comments