Feature/h1 title (#196)

* h1_title config

* introduce h1_title in config

* add h1_drop config setting

* allsow allow h1_drop in config
This commit is contained in:
Stephan Hradek
2022-06-06 08:38:23 +02:00
committed by GitHub
parent 3c7bd6133f
commit 4c812741ac
3 changed files with 24 additions and 2 deletions

View File

@@ -10,6 +10,8 @@ type Config struct {
Username string `env:"MARK_USERNAME" toml:"username"`
Password string `env:"MARK_PASSWORD" toml:"password"`
BaseURL string `env:"MARK_BASE_URL" toml:"base_url"`
H1Title bool `env:"MARK_H1_TITLE" toml:"h1_title"`
H1Drop bool `env:"MARK_H1_DROP" toml:"h1_drop"`
}
func LoadConfig(path string) (*Config, error) {