fix fonts loading
This commit is contained in:
parent
79660f803d
commit
e65155c5b0
2 changed files with 9 additions and 9 deletions
4
main.go
4
main.go
|
@ -108,9 +108,9 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
switch searchType {
|
switch searchType {
|
||||||
case "text":
|
case "text":
|
||||||
handleTextSearch(w, query, safe, lang) // Handles fetching and rendering text search results
|
handleTextSearch(w, query, safe, lang)
|
||||||
case "image":
|
case "image":
|
||||||
handleImageSearch(w, query, safe, lang, page) // Adjusted: Pass *http.Request to match the function signature
|
handleImageSearch(w, query, safe, lang, page)
|
||||||
default:
|
default:
|
||||||
http.ServeFile(w, r, "static/search.html")
|
http.ServeFile(w, r, "static/search.html")
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
src: local(''),
|
src: local(''),
|
||||||
url('/fonts/inter-v12-latin-300.woff2') format('woff2'),
|
url('/static/fonts/inter-v12-latin-300.woff2') format('woff2'),
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||||
url('/fonts/inter-v12-latin-300.woff') format('woff');
|
url('/static/fonts/inter-v12-latin-300.woff') format('woff');
|
||||||
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local(''),
|
src: local(''),
|
||||||
url('/fonts/inter-v12-latin-regular.woff2') format('woff2'),
|
url('/static/fonts/inter-v12-latin-regular.woff2') format('woff2'),
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||||
url('/fonts/inter-v12-latin-regular.woff') format('woff');
|
url('/static/fonts/inter-v12-latin-regular.woff') format('woff');
|
||||||
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local(''),
|
src: local(''),
|
||||||
url('/fonts/inter-v12-latin-700.woff2') format('woff2'),
|
url('/static/fonts/inter-v12-latin-700.woff2') format('woff2'),
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||||
url('/fonts/inter-v12-latin-700.woff') format('woff');
|
url('/static/fonts/inter-v12-latin-700.woff') format('woff');
|
||||||
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
font-family: 'Material Icons Round';
|
font-family: 'Material Icons Round';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url('/fonts/material-icons-round-v108-latin-regular.woff2') format('woff2');
|
src: url('/static/fonts/material-icons-round-v108-latin-regular.woff2') format('woff2');
|
||||||
/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue