mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +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
|
// 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.
|
// should not be quoted, and URLs et, which should be quoted.
|
||||||
// unquote() is knowing what to do with each.
|
// 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)
|
sort.Strings(varsSlice)
|
||||||
varsStylesheet = strings.Join(varsSlice, "\n")
|
varsStylesheet = strings.Join(varsSlice, "\n")
|
||||||
|
Reference in New Issue
Block a user