move html, js, css and gmi files to "frontend" dir

This commit is contained in:
nervuri 2023-09-20 09:53:02 +00:00
parent b899c240f4
commit 4bcd168abc
7 changed files with 6 additions and 18 deletions

View File

@ -11,22 +11,10 @@ Files: .gitignore
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
License: BSD-3-Clause
Files: *.gmi
Files: frontend/*
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
License: BSD-3-Clause
Files: *.tpl
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
License: BSD-3-Clause
Files: style.css
Copyright: 2023 nervuri <https://nervuri.net/contact>
License: BSD-3-Clause
Files: script.js
Copyright: 2023 nervuri <https://nervuri.net/contact>
License: BSD-3-Clause
Files: clienthello/*.csv
Copyright: IANA and IETF
License: CC0-1.0

View File

@ -54,19 +54,19 @@ func fatalError(err ...any) {
logger.Fatal(err...)
}
//go:embed index.html
//go:embed frontend/index.html
var html string
//go:embed error.html
//go:embed frontend/error.html
var htmlError string
//go:embed style.css
//go:embed frontend/style.css
var css string
//go:embed script.js
//go:embed frontend/script.js
var js string
//go:embed index.gmi
//go:embed frontend/index.gmi
var gemtext string
// Copy the Client Hello message before starting the TLS handshake.