Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Ignite/Framework/Article.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public struct Article {
self.path = metadata["path"] as? String ?? deployPath

// Save the first subfolder in the path as the article's type
let pathParts = path.split(separator: "/") // removes empty
let pathParts = path.split(separator: "/").map { String($0) } // removes empty
if pathParts.count > 1 { // no type if not in subdirectory
metadata["type"] = pathParts[0]
}
Expand Down