Fix page paths
Update PostListPageGenerator.swift
This commit is contained in:
@ -16,6 +16,13 @@ extension String {
|
||||
return decoded
|
||||
}
|
||||
|
||||
var withLeadingSlashRemoved: String {
|
||||
if !hasPrefix("/") {
|
||||
return self
|
||||
}
|
||||
return String(dropFirst("/".count))
|
||||
}
|
||||
|
||||
var removingSurroundingQuotes: String {
|
||||
if hasPrefix("\"") && hasSuffix("\"") {
|
||||
return dropBeforeFirst("\"").dropAfterLast("\"")
|
||||
|
Reference in New Issue
Block a user