diff --git a/handler/template.go b/handler/template.go index 4bf044c..9a38254 100644 --- a/handler/template.go +++ b/handler/template.go @@ -3,26 +3,12 @@ package handler import ( "fmt" "html/template" - "math/rand" "pixivfe/configs" "regexp" "strconv" "strings" ) -func GetRandomColor() string { - // Some color shade I generated - colors := []string{ - // Green - "#3cc223", - "#55dc3d", - "#7be468", - } - - // Randomly choose one and return - return colors[rand.Intn(len(colors))] -} - func GetTemplateFunctions() template.FuncMap { return template.FuncMap{ "inc": func(n int) int { @@ -143,10 +129,6 @@ func GetTemplateFunctions() template.FuncMap { return template.HTML(parsedString) }, - "randomColor": func() string { - return GetRandomColor() - }, - "isEmpty": func(s string) bool { return len(s) < 1 }, diff --git a/template/css/style.css b/template/css/style.css index ebf5da7..bf3e97e 100644 --- a/template/css/style.css +++ b/template/css/style.css @@ -394,6 +394,7 @@ body { padding: 5px 10px; text-decoration: none; color: #d8d4cf; + font-weight: bold; } .switcher { diff --git a/template/css/style.scss b/template/css/style.scss index 94106da..0caa741 100644 --- a/template/css/style.scss +++ b/template/css/style.scss @@ -462,6 +462,7 @@ body { padding: 5px 10px; text-decoration: none; color: $fg; + font-weight: bold; } .switcher {