mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Add pygmentsstyle and pygmentsuseclasses options
Fixes #204 Conflicts: commands/hugo.go
This commit is contained in:
@@ -110,6 +110,8 @@ func InitializeConfig() {
|
||||
viper.SetDefault("Indexes", map[string]string{"tag": "tags", "category": "categories"})
|
||||
viper.SetDefault("Permalinks", make(hugolib.PermalinkOverrides, 0))
|
||||
viper.SetDefault("Sitemap", hugolib.Sitemap{Priority: -1})
|
||||
viper.SetDefault("PygmentsStyle", "monokai")
|
||||
viper.SetDefault("PygmentsUseClasses", false)
|
||||
|
||||
if hugoCmdV.PersistentFlags().Lookup("build-drafts").Changed {
|
||||
viper.Set("BuildDrafts", Draft)
|
||||
@@ -134,7 +136,6 @@ func InitializeConfig() {
|
||||
if hugoCmdV.PersistentFlags().Lookup("logfile").Changed {
|
||||
viper.Set("LogFile", LogFile)
|
||||
}
|
||||
|
||||
if BaseUrl != "" {
|
||||
if !strings.HasSuffix(BaseUrl, "/") {
|
||||
BaseUrl = BaseUrl + "/"
|
||||
|
Reference in New Issue
Block a user