Add category post counts

- Add pagination (WIP)
- Tweak admin category/post list pages
This commit is contained in:
2022-04-27 20:01:33 -04:00
parent 6e7f4cc8ce
commit 5350c09484
15 changed files with 189 additions and 83 deletions

View File

@@ -12,7 +12,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig" Version="0.28.1" />
<PackageReference Include="Markdig" Version="0.30.2" />
<PackageReference Update="FSharp.Core" Version="6.0.3" />
</ItemGroup>

View File

@@ -20,6 +20,9 @@ type DisplayCategory =
/// The parent category names for this (sub)category
parentNames : string[]
/// The number of posts in this category
postCount : int
}
@@ -333,17 +336,14 @@ type PostDisplay =
/// Author ID -> name lookup
authors : MetaItem list
/// Category ID -> name lookup
categories : MetaItem list
/// A subtitle for the page
subtitle : string option
/// Whether there are newer posts than the ones in this model
hasNewer : bool
/// The link to view newer (more recent) posts
newerLink : string option
/// Whether there are older posts than the ones in this model
hasOlder : bool
/// The link to view older (less recent) posts
olderLink : string option
}