feat: load more posts for initial

This commit is contained in:
DIYgod 2023-08-05 15:14:21 +01:00
parent c42accc557
commit d0b8f22ff6
No known key found for this signature in database
4 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ async function SiteIndexPage({
type: ["post", "portfolio"],
visibility: PageVisibilityEnum.Published,
useStat: true,
limit: 18,
},
queryClient,
)

View File

@ -118,13 +118,13 @@ const Card = ({
label={`${platform?.name || platform}`}
className="text-sm"
>
<span className="inline-flex items-center space-x-1">
<span className="inline-flex items-center space-x-2">
{platform?.icon && (
<Image
src={platform?.icon}
alt={platform?.name}
width={20}
height={20}
width={18}
height={18}
/>
)}
<span>{t("Portfolio")}</span>

View File

@ -12,6 +12,7 @@ export default function SiteHome({ handle }: { handle: string }) {
type: ["post", "portfolio"],
visibility: PageVisibilityEnum.Published,
useStat: true,
limit: 18,
})
const pinnedPage = usePinnedPage({ characterId: site.data?.characterId })

View File

@ -265,7 +265,7 @@ export async function getPagesBySite(input: {
notes(
where: ${whereQuery},
orderBy: [{
publishedAt: {
publishedAt: {
sort: desc
}
}],