Documentation ¶
Index ¶
- type Caches
- type Config
- func (c *Config) AbsoluteResourcesDir() string
- func (c *Config) Fs() afero.Fs
- func (c *Config) GetImports(moduleDir string) ([]string, error)
- func (c *Config) PublishDir() string
- func (c *Config) ResourceDir() string
- func (c *Config) Theme() string
- func (c *Config) ThemesDir() string
- func (c *Config) WorkingDir() string
- type Imaging
- func (i Imaging) Anchor() gift.Anchor
- func (i Imaging) AnchorStr() string
- func (i Imaging) BgColor() color.Color
- func (i Imaging) BgColorStr() string
- func (i Imaging) ExifDecoder() (*exif.Decoder, error)
- func (i Imaging) ImageHint() webpoptions.EncodingPreset
- func (i Imaging) ImageQuality() int
- func (i Imaging) Resampling() gift.Resampling
- func (i Imaging) ResamplingStr() string
- func (i Imaging) SourceHash() string
- type Language
- func (l *Language) DefaultLanguage() string
- func (l *Language) GetLanguageFolder(lang string) string
- func (l *Language) GetLanguageIndex(lang string) (int, error)
- func (l *Language) GetLanguageName(lang string) string
- func (l *Language) GetRelDir(name string, langKey string) (dir string, err error)
- func (l *Language) IsLanguageValid(lang string) bool
- func (l *Language) LanguageKeys() []string
- func (l *Language) Languages() []valueobject.LanguageConfig
- func (l *Language) OtherLanguageKeys() []string
- func (l *Language) SetIndices()
- func (l *Language) Validate() error
- type MediaType
- type Menu
- type MinifyC
- type Module
- type OutputFormats
- type Root
- type Security
- type Service
- type Taxonomy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caches ¶
type Caches struct {
valueobject.CachesConfig
}
type Config ¶
type Config struct { ConfigSourceFs afero.Fs Provider config.Provider Root Caches Security Menu Module Service *Language Imaging MediaType OutputFormats MinifyC *Taxonomy }
func (*Config) AbsoluteResourcesDir ¶
func (*Config) PublishDir ¶
func (*Config) ResourceDir ¶
func (*Config) WorkingDir ¶
type Imaging ¶
type Imaging struct {
valueobject.ImagingConfigInternal
}
func (Imaging) BgColorStr ¶
func (Imaging) ImageHint ¶
func (i Imaging) ImageHint() webpoptions.EncodingPreset
func (Imaging) ImageQuality ¶
func (Imaging) Resampling ¶
func (i Imaging) Resampling() gift.Resampling
func (Imaging) ResamplingStr ¶
func (Imaging) SourceHash ¶
type Language ¶
type Language struct { Default string Configs map[string]valueobject.LanguageConfig RootConfigs map[string]valueobject.RootConfig // contains filtered or unexported fields }
func (*Language) DefaultLanguage ¶
func (*Language) GetLanguageFolder ¶
func (*Language) GetLanguageName ¶
func (*Language) IsLanguageValid ¶
func (*Language) LanguageKeys ¶
func (*Language) Languages ¶
func (l *Language) Languages() []valueobject.LanguageConfig
func (*Language) OtherLanguageKeys ¶
func (*Language) SetIndices ¶
func (l *Language) SetIndices()
type MediaType ¶
type MediaType struct {
valueobject.MediaTypeConfig
}
func (MediaType) LookFirstBySuffix ¶
func (MediaType) MediaTypes ¶
type Menu ¶
type Menu struct {
Menus map[string][]valueobject.MenuConfig
}
func (Menu) AllMenus ¶
func (m Menu) AllMenus() map[string][]valueobject.MenuConfig
type MinifyC ¶
type MinifyC struct {
valueobject.MinifyConfig
}
func (MinifyC) GetMinifier ¶
func (MinifyC) IsMinifyPublish ¶
type OutputFormats ¶
type OutputFormats struct {
valueobject.OutputFormatsConfig
}
func (OutputFormats) AllOutputFormats ¶
func (of OutputFormats) AllOutputFormats() output.Formats
type Root ¶
type Root struct { valueobject.RootConfig RootParams map[string]any }
func (Root) ConfigParams ¶
func (Root) DefaultTheme ¶
type Security ¶
type Security struct {
valueobject.SecurityConfig
}
func (Security) CheckAllowedGetEnv ¶
type Service ¶
type Service struct {
valueobject.ServiceConfig
}
func (Service) DisqusShortname ¶
func (Service) GoogleAnalyticsID ¶
func (Service) IsDisqusEnabled ¶
func (Service) IsGoogleAnalyticsEnabled ¶
func (Service) IsGoogleAnalyticsRespectDoNotTrack ¶
Click to show internal directories.
Click to hide internal directories.