code: func DecodeConfig(cfg config.Provider) (pc Config, err error) {
  	if !cfg.IsSet(privacyConfigKey) {
  		return
  	}
  
  	m := cfg.GetStringMap(privacyConfigKey)
  
  	err = mapstructure.WeakDecode(m, &pc)
  
  	return
  }
docs: // DecodeConfig creates a privacy Config from a given Hugo configuration.