mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
all: Unify case of config variable names
All config variables starts with low-case and uses camelCase. If there is abbreviation at the beginning of the name, the whole abbreviation will be written in low-case. If there is abbreviation at the end of the name, the whole abbreviation will be written in upper-case. For example, rssURI.
This commit is contained in:
parent
d9f54a13c1
commit
f21e2f25c9
67 changed files with 469 additions and 469 deletions
|
@ -35,8 +35,8 @@ func TestParsePygmentsArgs(t *testing.T) {
|
|||
{"style", "foo", false, false},
|
||||
} {
|
||||
viper.Reset()
|
||||
viper.Set("PygmentsStyle", this.pygmentsStyle)
|
||||
viper.Set("PygmentsUseClasses", this.pygmentsUseClasses)
|
||||
viper.Set("pygmentsStyle", this.pygmentsStyle)
|
||||
viper.Set("pygmentsUseClasses", this.pygmentsUseClasses)
|
||||
|
||||
result1, err := parsePygmentsOpts(this.in)
|
||||
if b, ok := this.expect1.(bool); ok && !b {
|
||||
|
@ -72,14 +72,14 @@ func TestParseDefaultPygmentsArgs(t *testing.T) {
|
|||
} {
|
||||
viper.Reset()
|
||||
|
||||
viper.Set("PygmentsOptions", this.pygmentsOptions)
|
||||
viper.Set("pygmentsOptions", this.pygmentsOptions)
|
||||
|
||||
if s, ok := this.pygmentsStyle.(string); ok {
|
||||
viper.Set("PygmentsStyle", s)
|
||||
viper.Set("pygmentsStyle", s)
|
||||
}
|
||||
|
||||
if b, ok := this.pygmentsUseClasses.(bool); ok {
|
||||
viper.Set("PygmentsUseClasses", b)
|
||||
viper.Set("pygmentsUseClasses", b)
|
||||
}
|
||||
|
||||
result, err := parsePygmentsOpts(this.in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue