Skip to content

Commit 95c62f4

Browse files
committed
fix styling in pages within subfolders
Fixes style and scripts missing from pages in subfolders #19
1 parent 30e47fd commit 95c62f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlpage/templates/shell.handlebars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8"/>
55
<title>{{default title "SQLPage"}}</title>
66

7-
<link rel="stylesheet" href="{{static_path 'sqlpage.css'}}">
7+
<link rel="stylesheet" href="/{{static_path 'sqlpage.css'}}">
88
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/tabler-icons.min.css"
99
integrity="sha384-a8pgu0eDAmHMVlQuzUEoHyapgzLXfOaTTNrMzPivsvAts7LkllyAYpRE4saDWQj7" crossorigin="anonymous">
1010

@@ -19,7 +19,7 @@
1919
<style>:root { --tblr-font-sans-serif: '{{font}}', Arial, sans;}</style>
2020
{{/if}}
2121

22-
<script src="{{static_path 'sqlpage.js'}}" defer></script>
22+
<script src="/{{static_path 'sqlpage.js'}}" defer></script>
2323
{{#each (to_array javascript)}}
2424
<script src="{{this}}" defer></script>
2525
{{/each}}

0 commit comments

Comments
 (0)