code: func IsValidConfigFilename(filename string) bool {
  	ext := strings.ToLower(strings.TrimPrefix(filepath.Ext(filename), "."))
  	return validConfigFileExtensionsMap[ext]
  }
docs: // IsValidConfigFilename returns whether filename is one of the supported
  // config formats in Hugo.