We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 503230c + e7bf351 commit 2ea0393Copy full SHA for 2ea0393
config.go
@@ -179,6 +179,10 @@ type Config struct {
179
// Applies custom CSS styles.
180
// default: ""
181
CustomStyle template.CSS `json:"-"`
182
+
183
+ // Applies custom JavaScript scripts.
184
+ // default ""
185
+ CustomScript template.JS `json:"-"`
186
}
187
188
type FilterConfig struct {
index.go
@@ -17,6 +17,11 @@ const indexTmpl string = `
17
{{.CustomStyle}}
18
</style>
19
{{- end}}
20
+ {{- if .CustomScript}}
21
+ <script>
22
+ {{.CustomScript}}
23
+ </script>
24
+ {{- end}}
25
</head>
26
<body>
27
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
0 commit comments