From 568cb053b0de48987f75a627630f0b82d068d03b Mon Sep 17 00:00:00 2001 From: Jewgeni Lewash Date: Sun, 3 Mar 2024 17:54:38 +0100 Subject: [PATCH] style: format code --- .astro/types.d.ts | 67 ++++++++++++++++------------------ src/pages/blog.astro | 2 +- src/pages/blog/[...slug].astro | 2 +- 3 files changed, 34 insertions(+), 37 deletions(-) diff --git a/.astro/types.d.ts b/.astro/types.d.ts index ff39d7b..f8af8d9 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -135,44 +135,41 @@ declare module 'astro:content' { >; type ContentEntryMap = { - "blog": { -"10-essential-web-development-tools-for-building-stunning-websites.mdx": { - id: "10-essential-web-development-tools-for-building-stunning-websites.mdx"; - slug: "10-essential-web-development-tools-for-building-stunning-websites"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".mdx"] }; -"essential-frontend-tools-for-astro-js-developers.mdx": { - id: "essential-frontend-tools-for-astro-js-developers.mdx"; - slug: "essential-frontend-tools-for-astro-js-developers"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".mdx"] }; -"exploring-nodejs-development-trends-2024.mdx": { - id: "exploring-nodejs-development-trends-2024.mdx"; - slug: "exploring-nodejs-development-trends-2024"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".mdx"] }; -"unleasing-the-power-of-astro-js-for-better-web-development.mdx": { - id: "unleasing-the-power-of-astro-js-for-better-web-development.mdx"; - slug: "unleasing-the-power-of-astro-js-for-better-web-development"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".mdx"] }; -}; - + blog: { + '10-essential-web-development-tools-for-building-stunning-websites.mdx': { + id: '10-essential-web-development-tools-for-building-stunning-websites.mdx'; + slug: '10-essential-web-development-tools-for-building-stunning-websites'; + body: string; + collection: 'blog'; + data: InferEntrySchema<'blog'>; + } & { render(): Render['.mdx'] }; + 'essential-frontend-tools-for-astro-js-developers.mdx': { + id: 'essential-frontend-tools-for-astro-js-developers.mdx'; + slug: 'essential-frontend-tools-for-astro-js-developers'; + body: string; + collection: 'blog'; + data: InferEntrySchema<'blog'>; + } & { render(): Render['.mdx'] }; + 'exploring-nodejs-development-trends-2024.mdx': { + id: 'exploring-nodejs-development-trends-2024.mdx'; + slug: 'exploring-nodejs-development-trends-2024'; + body: string; + collection: 'blog'; + data: InferEntrySchema<'blog'>; + } & { render(): Render['.mdx'] }; + 'unleasing-the-power-of-astro-js-for-better-web-development.mdx': { + id: 'unleasing-the-power-of-astro-js-for-better-web-development.mdx'; + slug: 'unleasing-the-power-of-astro-js-for-better-web-development'; + body: string; + collection: 'blog'; + data: InferEntrySchema<'blog'>; + } & { render(): Render['.mdx'] }; + }; }; - type DataEntryMap = { - - }; + type DataEntryMap = {}; type AnyEntryMap = ContentEntryMap & DataEntryMap; - export type ContentConfig = typeof import("../src/content/config.js"); + export type ContentConfig = typeof import('../src/content/config.js'); } diff --git a/src/pages/blog.astro b/src/pages/blog.astro index 6192141..7fa695b 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -24,7 +24,7 @@ const allBlogposts = await getCollection('blog'); Read more diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index c5803af..59e5c1b 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -22,7 +22,7 @@ const { title } = entry.data;
+ class="container prose mx-auto space-y-16 px-4 py-16 dark:prose-invert lg:px-8 lg:py-32 xl:max-w-7xl">

{title}