mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
committed by
Bjørn Erik Pedersen
parent
d20d2651ea
commit
5d5f0a2371
@@ -38,7 +38,7 @@ func CreateVarsStyleSheet(vars map[string]string) string {
|
||||
// These variables can be a combination of Sass identifiers (e.g. sans-serif), which
|
||||
// should not be quoted, and URLs et, which should be quoted.
|
||||
// unquote() is knowing what to do with each.
|
||||
varsSlice = append(varsSlice, fmt.Sprintf("%s%s: unquote('%s');", prefix, k, v))
|
||||
varsSlice = append(varsSlice, fmt.Sprintf("%s%s: unquote(%q);", prefix, k, v))
|
||||
}
|
||||
sort.Strings(varsSlice)
|
||||
varsStylesheet = strings.Join(varsSlice, "\n")
|
||||
|
Reference in New Issue
Block a user