added icons to website
This commit is contained in:
parent
dbc5a2b4b1
commit
5157414fce
18 changed files with 185 additions and 36 deletions
7
main.go
7
main.go
|
@ -116,6 +116,9 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
|
||||
// Determine the paths for SVG and PNG icons
|
||||
iconPathSVG, iconPathPNG := GetIconPath()
|
||||
|
||||
if query == "" {
|
||||
data := struct {
|
||||
LanguageOptions []LanguageOption
|
||||
|
@ -124,6 +127,8 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
|
|||
Theme string
|
||||
Safe string
|
||||
IsThemeDark bool
|
||||
IconPathSVG string
|
||||
IconPathPNG string
|
||||
}{
|
||||
LanguageOptions: languageOptions,
|
||||
CurrentLang: settings.SiteLanguage,
|
||||
|
@ -131,6 +136,8 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
|
|||
Theme: settings.Theme,
|
||||
Safe: settings.SafeSearch,
|
||||
IsThemeDark: settings.IsThemeDark,
|
||||
IconPathSVG: iconPathSVG,
|
||||
IconPathPNG: iconPathPNG,
|
||||
}
|
||||
|
||||
// Add Translate to the template functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue