mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
strip trailing baseurl slash. Added a new template function "sanitizeurl" which ensures no double slashes. Fixed #221
This commit is contained in:
@@ -227,7 +227,7 @@ func (s *Site) initializeSiteInfo() {
|
||||
}
|
||||
|
||||
s.Info = SiteInfo{
|
||||
BaseUrl: template.URL(viper.GetString("BaseUrl")),
|
||||
BaseUrl: template.URL(helpers.SanitizeUrl(viper.GetString("BaseUrl"))),
|
||||
Title: viper.GetString("Title"),
|
||||
Recent: &s.Pages,
|
||||
Params: params,
|
||||
|
Reference in New Issue
Block a user