Fix page paths
Update PostListPageGenerator.swift
This commit is contained in:
@ -2,6 +2,7 @@ import Foundation
|
||||
|
||||
struct PostFeedPageNavigation {
|
||||
|
||||
/// Includes a leading slash
|
||||
let linkPrefix: String
|
||||
|
||||
let currentPage: Int
|
||||
@ -15,7 +16,7 @@ struct PostFeedPageNavigation {
|
||||
}
|
||||
|
||||
private func pageLink(_ page: Int) -> String {
|
||||
"href='/\(linkPrefix)/\(page)'"
|
||||
"href='\(linkPrefix)/\(page)'"
|
||||
}
|
||||
|
||||
private func addPreviousButton(to result: inout String) {
|
||||
|
Reference in New Issue
Block a user