Add some foolproofery
This commit is contained in:
parent
e1161b9227
commit
4de465e544
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ func NewApplication(config *Config) (*Application, error) {
|
|||
|
||||
config = &app.Config
|
||||
|
||||
config.Server.BaseURL = strings.TrimRight(config.Server.BaseURL, "/")
|
||||
|
||||
if config.Server.BaseURL != "" &&
|
||||
config.Theme.CustomCSSFile != "" &&
|
||||
strings.HasPrefix(config.Theme.CustomCSSFile, "/assets/") {
|
||||
|
|
Loading…
Add table
Reference in a new issue