diff --git a/dict/main.go b/dict/main.go index 88125f9..2261a1c 100644 --- a/dict/main.go +++ b/dict/main.go @@ -404,6 +404,6 @@ func main() { }, []string{http.MethodGet}, )) - r.Handle("/", http.FileServer(http.Dir("static"))) + r.PathPrefix("/").Handler(http.FileServer(http.Dir("static"))) log.Fatal(http.ListenAndServe(":3334", r)) } diff --git a/dict/static/logo.svg b/dict/static/logo.svg new file mode 100644 index 0000000..9e412b3 --- /dev/null +++ b/dict/static/logo.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/dict/templates/index.html b/dict/templates/index.html index ea33ea8..e16e3da 100644 --- a/dict/templates/index.html +++ b/dict/templates/index.html @@ -22,8 +22,11 @@
- + +
+ jichan.org is in open alpha. The site may be buggy. More features are coming soon. If you have ideas or want to contribute, DM me on Discord @elnudev or open an issue on Codeberg. +
- {{ block "results" . }}{{ if .Query }}{{ template "search" . }}{{ end }}{{ end }} + {{ block "results" . }} + {{ if .Query }} + {{ template "search" . }} + {{ else }} +

Thank you to

+ + {{ end }} + {{ end }}

diff --git a/dict/templates/partials/sitetitle.html b/dict/templates/partials/sitetitle.html index 67e6c0a..72b7d48 100644 --- a/dict/templates/partials/sitetitle.html +++ b/dict/templates/partials/sitetitle.html @@ -1 +1 @@ -{{ define "sitetitle" }}jidict{{ end }} \ No newline at end of file +{{ define "sitetitle" }}jichan.org{{ end }} \ No newline at end of file