mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
d7502ee904
commit
6c768205d7
2 changed files with 7 additions and 5 deletions
|
@ -321,7 +321,9 @@ export const AstroConfigSchema = z.object({
|
|||
.or(z.custom<ShikiTheme>())
|
||||
)
|
||||
.default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.themes!),
|
||||
defaultColor: z.union([z.literal('light'), z.literal('dark'), z.string(), z.literal(false)]).optional(),
|
||||
defaultColor: z
|
||||
.union([z.literal('light'), z.literal('dark'), z.string(), z.literal(false)])
|
||||
.optional(),
|
||||
wrap: z.boolean().or(z.null()).default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.wrap!),
|
||||
transformers: z
|
||||
.custom<ShikiTransformer>()
|
||||
|
|
|
@ -62,13 +62,13 @@ export function generatePaginateFunction(
|
|||
: correctIndexRoute(
|
||||
routeMatch.generate({
|
||||
...params,
|
||||
page: includesFirstPageNumber? "1": undefined,
|
||||
page: includesFirstPageNumber ? '1' : undefined,
|
||||
})
|
||||
);
|
||||
);
|
||||
const last =
|
||||
pageNum === lastPage
|
||||
pageNum === lastPage
|
||||
? undefined
|
||||
: correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage)}));
|
||||
: correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage) }));
|
||||
return {
|
||||
params,
|
||||
props: {
|
||||
|
|
Loading…
Reference in a new issue