added icons to website

This commit is contained in:
partisan 2024-10-28 10:52:39 +01:00
parent dbc5a2b4b1
commit 5157414fce
18 changed files with 185 additions and 36 deletions

View file

@ -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