Skip to content

Commit

Permalink
Embed public fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aceberg committed Dec 18, 2023
1 parent 99a6176 commit f326aa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/web/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Favicon-->
<link rel="icon" type="image/x-icon" href="/public/favicon.ico">
<link rel="icon" type="image/x-icon" href="/fs/public/favicon.ico">
<!-- <link href="data:image/x-icon;base64, {{ .Config.Icon }}" rel="icon" type="image/x-icon" /> -->
<!-- Font for icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
Expand Down
4 changes: 2 additions & 2 deletions internal/web/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "index.html" }}
</head>
<script src="./public/js/index.js"></script>
<link rel="stylesheet" type="text/css" href="./public/css/index.css" />
<script src="./fs/public/js/index.js"></script>
<link rel="stylesheet" type="text/css" href="./fs/public/css/index.css" />
<body onload='setFormDateSets({{ .ExData.Sets }})'>
<br>
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion internal/web/webgui.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Gui(dirPath, nodePath string) {
templ := template.Must(template.New("").ParseFS(templFS, "templates/*"))
router.SetHTMLTemplate(templ)

router.StaticFS("/public", http.FS(pubFS))
router.StaticFS("/fs/", http.FS(pubFS))

router.GET("/", indexHandler) // index.go
router.GET("/config/", configHandler) // config.go
Expand Down

0 comments on commit f326aa6

Please sign in to comment.