Fix sub-folder baseURL handling for Page resources

I.e. images etc.

Fixes #4228
This commit is contained in:
Bjørn Erik Pedersen
2018-01-05 11:07:50 +01:00
parent 54a89cde69
commit f25d8a9e17
9 changed files with 136 additions and 52 deletions

View File

@@ -225,9 +225,12 @@ type Page struct {
Sitemap Sitemap
URLPath
permalink string
relPermalink string
relPermalinkBase string // relPermalink without extension
permalink string
relPermalink string
// relPermalink without extension and any base path element from the baseURL.
// This is used to construct paths in the page resources.
relPermalinkBase string
layoutDescriptor output.LayoutDescriptor