Add draft indicator, filter drafts, show issue count

This commit is contained in:
Christoph Hagen
2025-01-07 14:03:07 +01:00
parent 9d95e7d210
commit 508483071a
10 changed files with 124 additions and 32 deletions

View File

@ -246,7 +246,7 @@ final class FileResource: Item {
/**
Get the url path to a file in the output folder.
The result is an absolute path from the output folder for use in HTML.
The result is an absolute path from the output folder for use in HTML, including a leading slash
*/
var absoluteUrl: String {
if let customOutputPath {

View File

@ -180,6 +180,15 @@ enum FileType: String {
category == .image
}
var generatesImageVersions: Bool {
switch self {
case .jpg, .png, .avif, .webp, .tiff:
return true
default:
return false
}
}
var isVideo: Bool {
category == .video
}