Fix page paths

Update PostListPageGenerator.swift
This commit is contained in:
Christoph Hagen
2025-01-07 10:31:46 +01:00
parent f8150e0809
commit dd2b7d6cd2
7 changed files with 31 additions and 8 deletions

View File

@ -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)