Use custom path

This commit is contained in:
Christoph Hagen 2025-01-06 18:37:16 +01:00
parent 4aedd06c11
commit 4da7ef52c4

View File

@ -249,6 +249,9 @@ final class FileResource: Item {
The result is an absolute path from the output folder for use in HTML.
*/
var absoluteUrl: String {
if let customOutputPath {
return customOutputPath
}
let path = pathPrefix + "/" + id
return makeCleanAbsolutePath(path)
}