feat: load more posts for initial
This commit is contained in:
parent
c42accc557
commit
d0b8f22ff6
|
|
@ -22,6 +22,7 @@ async function SiteIndexPage({
|
|||
type: ["post", "portfolio"],
|
||||
visibility: PageVisibilityEnum.Published,
|
||||
useStat: true,
|
||||
limit: 18,
|
||||
},
|
||||
queryClient,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ export async function getPagesBySite(input: {
|
|||
notes(
|
||||
where: ${whereQuery},
|
||||
orderBy: [{
|
||||
publishedAt: {
|
||||
publishedAt: {
|
||||
sort: desc
|
||||
}
|
||||
}],
|
||||
|
|
|
|||
Loading…
Reference in New Issue