Skip to content

Commit 1336e43

Browse files
committed
Fix static paths
1 parent 6e2f960 commit 1336e43

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/_templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
{%- block htmltitle %}
77

8-
<link rel="stylesheet" id="silktide-consent-manager-css" href="path-to-css/silktide-consent-manager.css">
9-
<script src="path-to-js/silktide-consent-manager.js"></script>
8+
<link rel="stylesheet" id="silktide-consent-manager-css" href="{{ pathto('_static/silktide-consent-manager.css', 1) }}">
9+
<script src="{{ pathto('_static/silktide-consent-manager.js', 1) }}"></script>
1010
<script>
1111
silktideCookieBannerManager.updateCookieBannerConfig({
1212
background: {

docs/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@
146146
html_static_path = ['_static']
147147

148148
html_css_files = [
149-
'style.css'
149+
'style.css',
150+
'silktide-consent-manager.css'
151+
]
152+
153+
html_js_files = [
154+
'silktide-consent-manager.js'
150155
]
151156

152157
# Custom sidebar templates, must be a dictionary that maps document names

0 commit comments

Comments
 (0)