Versions in this module Expand all Collapse all v0 v0.0.1 Aug 4, 2026 Changes in this version + var DefaultConfigNames = []string + var DefaultConfigNamesSet = make(map[string]bool) + var ValidConfigFileExtensions = []string + func FromFileToMap(fs afero.Fs, filename string) (map[string]any, error) + func GetMemoryLimit() uint64 + func GetNumWorkerMultiplier() int + func GetStringSlicePreserveString(cfg Provider, key string) []string + func IsValidConfigFilename(filename string) bool + func RenameKeys(m map[string]any) + func SetEnvVars(oldVars *[]string, keyValues ...string) + func SplitEnvVar(v string) (string, string) + type AllProvider interface + BaseConfig func() BaseConfig + BaseURL func() urls.BaseURL + BaseURLLiveReload func() urls.BaseURL + BuildDrafts func() bool + BuildExpired func() bool + BuildFuture func() bool + CanonifyURLs func() bool + ContentTypes func() ContentTypesProvider + CreateTitle func(s string) string + DefaultContentLanguage func() string + DefaultContentLanguageInSubdir func() bool + Dirs func() CommonDirs + DirsBase func() CommonDirs + DisablePathToLower func() bool + EnableEmoji func() bool + EnableMissingTranslationPlaceholders func() bool + Environment func() string + FastRenderMode func() bool + GetConfig func() any + GetConfigSection func(string) any + IgnoreFile func(s string) bool + IgnoredLogs func() map[string]bool + IsLangDisabled func(string) bool + IsMultihost func() bool + IsMultilingual func() bool + IsUglyURLs func(section string) bool + Language func() *langs.Language + LanguagePrefix func() string + Languages func() langs.Languages + LanguagesDefaultFirst func() langs.Languages + NewContentEditor func() string + NewIdentityManager func(name string, opts ...identity.ManagerOption) identity.Manager + NoBuildLock func() bool + Pagination func() Pagination + PathParser func() *paths.PathParser + PrintI18nWarnings func() bool + PrintUnusedTemplates func() bool + Quiet func() bool + RemovePathAccents func() bool + Running func() bool + StaticDirs func() []string + SummaryLength func() int + TemplateMetrics func() bool + TemplateMetricsHints func() bool + Timeout func() time.Duration + Watching func() bool + WorkingDir func() string + type BaseConfig struct + CacheDir string + PublishDir string + ThemesDir string + WorkingDir string + type BuildConfig struct + BuildStats BuildStats + CacheBusters []CacheBuster + NoJSConfigInAssets bool + UseResourceCacheWhen string + func DecodeBuildConfig(cfg Provider) BuildConfig + func (b *BuildConfig) CompileConfig(logger loggers.Logger) error + func (b BuildConfig) UseResourceCache(err error) bool + func (s BuildConfig) MatchCacheBuster(logger loggers.Logger, p string) (func(string) bool, error) + type BuildStats struct + DisableClasses bool + DisableIDs bool + DisableTags bool + Enable bool + func (w BuildStats) Enabled() bool + type CacheBuster struct + Source string + Target string + func (c *CacheBuster) CompileConfig(logger loggers.Logger) error + type CommonDirs struct + ArcheTypeDir string + AssetDir string + CacheDir string + ContentDir string + DataDir string + I18nDir string + LayoutDir string + PublishDir string + ResourceDir string + ThemesDir string + WorkingDir string + type ConfigNamespace struct + Config C + SourceHash string + SourceStructure any + func DecodeNamespace[S, C any](configSource any, buildConfig func(any) (C, any, error)) (*ConfigNamespace[S, C], error) + func (ns *ConfigNamespace[S, C]) MarshalJSON() ([]byte, error) + func (ns *ConfigNamespace[S, C]) Signature() S + type ContentTypesProvider interface + IsContentFile func(filename string) bool + IsContentSuffix func(suffix string) bool + IsHTMLSuffix func(suffix string) bool + IsIndexContentFile func(filename string) bool + type Headers struct + For string + Values map[string]any + type LoadConfigResult struct + BaseConfig BaseConfig + Cfg Provider + ConfigFiles []string + type PageConfig struct + NextPrevInSectionSortOrder string + NextPrevSortOrder string + func (c *PageConfig) CompileConfig(loggers.Logger) error + type Pagination struct + DisableAliases bool + PagerSize int + Path string + type Provider interface + Get func(key string) any + GetBool func(key string) bool + GetInt func(key string) int + GetParams func(key string) maps.Params + GetString func(key string) string + GetStringMap func(key string) map[string]any + GetStringMapString func(key string) map[string]string + GetStringSlice func(key string) []string + IsSet func(key string) bool + Keys func() []string + Merge func(key string, value any) + Set func(key string, value any) + SetDefaultMergeStrategy func() + SetDefaults func(params maps.Params) + WalkParams func(walkFn func(params ...maps.KeyParams) bool) + func FromConfigString(config, configType string) (Provider, error) + func FromFile(fs afero.Fs, filename string) (Provider, error) + func FromTOMLConfigString(config string) Provider + func LoadConfigFromDir(sourceFs afero.Fs, configDir, environment string) (Provider, []string, error) + func New() Provider + func NewFrom(params maps.Params) Provider + type Redirect struct + Force bool + From string + FromHeaders map[string]string + FromRe string + Status int + To string + func (r Redirect) IsZero() bool + type Server struct + Headers []Headers + Redirects []Redirect + func DecodeServer(cfg Provider) (Server, error) + func (s *Server) CompileConfig(logger loggers.Logger) error + func (s *Server) MatchHeaders(pattern string) []types.KeyValueStr + func (s *Server) MatchRedirect(pattern string, header http.Header) Redirect + type SitemapConfig struct + ChangeFreq string + Disable bool + Filename string + Priority float64 + func DecodeSitemap(prototype SitemapConfig, input map[string]any) (SitemapConfig, error)