Fix page paths
Update PostListPageGenerator.swift
This commit is contained in:
@ -250,7 +250,11 @@ final class FileResource: Item {
|
||||
*/
|
||||
var absoluteUrl: String {
|
||||
if let customOutputPath {
|
||||
return customOutputPath
|
||||
if customOutputPath.hasPrefix("/") {
|
||||
return customOutputPath
|
||||
} else {
|
||||
return "/" + customOutputPath
|
||||
}
|
||||
}
|
||||
let path = pathPrefix + "/" + id
|
||||
return makeCleanAbsolutePath(path)
|
||||
|
Reference in New Issue
Block a user