hugo-cms/providers/hugo/config.go

30 lines
784 B
Go
Raw Normal View History

package hugo
2025-03-29 23:39:02 +00:00
type permalinksConfig struct {
Page map[string]string `yaml:"page"`
}
type hugoConfig struct {
2025-03-29 23:39:02 +00:00
BaseURL string `yaml:"baseURL,omitempty"`
LanguageCode string `yaml:"languageCode"`
Title string `yaml:"title"`
Theme string `yaml:"theme"`
CanonifyURLs bool `yaml:"canonifyURLs,omitempty"`
Permalinks permalinksConfig `yaml:"permalinks,omitempty"`
2025-03-30 00:15:46 +00:00
Params map[string]any `yaml:"params,omitempty"`
Markup hugoConfigMarkup `yaml:"markup"`
}
type hugoConfigMarkup struct {
Goldmark hugoGoldmarkConfig `yaml:"goldmark"`
}
type hugoGoldmarkConfig struct {
Renderer hugoGoldmarkRendererConfig `yaml:"renderer"`
}
type hugoGoldmarkRendererConfig struct {
Unsafe bool `yaml:"unsafe"`
}