Skip to content

Commit

Permalink
Merge pull request #131 from krymtkts:feature/bugfix-future-post
Browse files Browse the repository at this point in the history
Fix the bug caused the latest archive post generates the link to the future post.
  • Loading branch information
krymtkts authored Dec 31, 2023
2 parents be10106 + 98c5a09 commit 1080079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ module Rendering =
promise {
let! files = getMarkdownFiles sourceDir
let! metas = files |> List.map readSource |> Promise.all
let metas = metas |> Array.filter _.publish

return!
metas
|> Seq.filter (fun x -> x.publish)
|> Seq.mapi (fun i meta ->
promise {
let prev, next =
Expand Down

0 comments on commit 1080079

Please sign in to comment.