0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Takeo Sawada 2024-07-17 14:56:40 +00:00 committed by Emanuele Stoppa
parent d7502ee904
commit 6c768205d7
2 changed files with 7 additions and 5 deletions

View file

@ -321,7 +321,9 @@ export const AstroConfigSchema = z.object({
.or(z.custom<ShikiTheme>()) .or(z.custom<ShikiTheme>())
) )
.default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.themes!), .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!), wrap: z.boolean().or(z.null()).default(ASTRO_CONFIG_DEFAULTS.markdown.shikiConfig.wrap!),
transformers: z transformers: z
.custom<ShikiTransformer>() .custom<ShikiTransformer>()

View file

@ -62,13 +62,13 @@ export function generatePaginateFunction(
: correctIndexRoute( : correctIndexRoute(
routeMatch.generate({ routeMatch.generate({
...params, ...params,
page: includesFirstPageNumber? "1": undefined, page: includesFirstPageNumber ? '1' : undefined,
}) })
); );
const last = const last =
pageNum === lastPage pageNum === lastPage
? undefined ? undefined
: correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage)})); : correctIndexRoute(routeMatch.generate({ ...params, page: String(lastPage) }));
return { return {
params, params,
props: { props: {