From 7155c5ff23b6a8a3f622f67ec8d094f02c025f14 Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 23 Jan 2023 17:59:08 -0500 Subject: [PATCH 1/5] Update to astro@2.0.0-beta.4 --- package.json | 6 +++--- src/content/config.ts | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index aa729ec..9978b41 100644 --- a/package.json +++ b/package.json @@ -16,17 +16,17 @@ "devDependencies": { "@astrojs/image": "^1.0.0-beta.2", "@astrojs/mdx": "^1.0.0-beta.2", - "@astrojs/partytown": "^1.0.3-beta.0", + "@astrojs/partytown": "^1.0.3-beta.1", "@astrojs/rss": "^2.0.0", "@astrojs/sitemap": "^1.0.0", - "@astrojs/tailwind": "^3.0.0-beta.1", + "@astrojs/tailwind": "^3.0.0-beta.2", "@astrolib/analytics": "^0.3.0", "@astrolib/seo": "^0.3.0", "@fontsource/inter": "^4.5.15", "@tailwindcss/typography": "^0.5.9", "@typescript-eslint/eslint-plugin": "^5.48.2", "@typescript-eslint/parser": "^5.48.2", - "astro": "^2.0.0-beta.3", + "astro": "^2.0.0-beta.4", "astro-compress": "1.1.28", "astro-icon": "^0.8.0", "eslint": "^8.32.0", diff --git a/src/content/config.ts b/src/content/config.ts index 106b684..b739e73 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -7,7 +7,6 @@ const posts = defineCollection({ image: z.string().optional(), canonical: z.string().url().optional(), - permalink: z.string().optional(), publishDate: z.date().or(z.string()).optional(), draft: z.boolean().optional(), @@ -17,9 +16,6 @@ const posts = defineCollection({ tags: z.array(z.string()).optional(), author: z.string().optional(), }), - slug: ({ defaultSlug, data }) => { - return data.permalink || defaultSlug; - }, }); export const collections = { From b3f71b12975d044b2d9efdaee946790c50590c23 Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 23 Jan 2023 18:00:10 -0500 Subject: [PATCH 2/5] Remove readingTime --- astro.config.mjs | 5 +---- src/components/blog/ListItem.astro | 3 +-- src/components/blog/SinglePost.astro | 6 ++---- src/types.ts | 1 - src/utils/blog.ts | 4 +--- 5 files changed, 5 insertions(+), 14 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 680c0c2..59de232 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,7 +10,6 @@ import mdx from '@astrojs/mdx'; import partytown from '@astrojs/partytown'; import compress from 'astro-compress'; -import { remarkReadingTime } from './src/utils/frontmatter.mjs'; import { SITE } from './src/config.mjs'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -56,9 +55,7 @@ export default defineConfig({ }), ], - markdown: { - remarkPlugins: [remarkReadingTime], - }, + markdown: {}, vite: { resolve: { diff --git a/src/components/blog/ListItem.astro b/src/components/blog/ListItem.astro index 06fe825..20ce0b7 100644 --- a/src/components/blog/ListItem.astro +++ b/src/components/blog/ListItem.astro @@ -44,8 +44,7 @@ const link = !BLOG?.post?.disabled ? getPermalink(post.slug, 'post') : '';
- ~ - {Math.ceil(post.readingTime)} min read +

diff --git a/src/components/blog/SinglePost.astro b/src/components/blog/SinglePost.astro index 32b7f1a..d53fb6f 100644 --- a/src/components/blog/SinglePost.astro +++ b/src/components/blog/SinglePost.astro @@ -22,10 +22,8 @@ const { post, url } = Astro.props;

- - ~ { - Math.ceil(post.readingTime) - } min read + +

): Promise => { const { id, slug = '', data } = post; - const { Content, remarkPluginFrontmatter } = await post.render(); + const { Content } = await post.render(); const { tags = [], category = 'default', author = 'Anonymous', publishDate = new Date(), ...rest } = data; @@ -22,8 +22,6 @@ const getNormalizedPost = async (post: CollectionEntry<'posts'>): Promise Content: Content, // or 'body' in case you consume from API - - readingTime: remarkPluginFrontmatter?.readingTime, }; }; From d05b2a351242930528f98113b710a6d66da82ec6 Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 23 Jan 2023 18:00:36 -0500 Subject: [PATCH 3/5] Increase font size --- src/layouts/MarkdownLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/MarkdownLayout.astro b/src/layouts/MarkdownLayout.astro index 1477adf..85cbddd 100644 --- a/src/layouts/MarkdownLayout.astro +++ b/src/layouts/MarkdownLayout.astro @@ -14,7 +14,7 @@ const meta: MetaSEO = {
-

{frontmatter.title}

+

{frontmatter.title}

From 50add656116075898149b9b23e80484b670a752f Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 23 Jan 2023 18:01:06 -0500 Subject: [PATCH 4/5] Remove Roadmap section --- README.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/README.md b/README.md index f964729..7a201e3 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ - [Commands](#commands) - [Configuration](#configuration) - [Deploy](#deploy) -- [Roadmap](#roadmap) - [Frequently Asked Questions](#frequently-asked-questions) - [Related Projects](#related-projects) - [Contributing](#contributing) @@ -229,24 +228,6 @@ Clone this repository on own GitHub account and deploy to Vercel:
-## Roadmap - -### Base - -- [ ] Improve blog design (More generic design that adapts to more needs). -- [ ] Create component or utilities for related posts. -- [ ] Add more _shortcodes_ or _embed_ functions to posts in Markdown: (eg Video, Tweet...). -- [ ] Add more Tailwind components useful for most scenarios (Features, Contact, Call to Actions, Content, FAQs...) -- [ ] Add commonly used example pages (Ex: About, Terms, Profile, Services...). -- [ ] Create detailed documentation with best practices and redesign tips. - -### Advanced - -- [ ] Create external library or place with useful Tailwind components. -- [ ] Create examples of AstroWind in CodeSanbox or a similar platform that can be easily synchronized with new updates. (Redesign, Integration with React or Svelte components, Use of Tailwind plugins, Connection to headless CMS ...). - -
- ## Frequently Asked Questions - Why? From ddeac0576fcdd5ef95163ec76bd876992a772d26 Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 23 Jan 2023 18:01:38 -0500 Subject: [PATCH 5/5] Fix minimal detail --- src/pages/landing/mobile-app.astro | 2 +- src/pages/landing/saas.astro | 2 +- src/pages/landing/startup.astro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/landing/mobile-app.astro b/src/pages/landing/mobile-app.astro index c7f2667..8675d01 100644 --- a/src/pages/landing/mobile-app.astro +++ b/src/pages/landing/mobile-app.astro @@ -62,7 +62,7 @@ const meta = { }} > - Astro +
Tailwind CSS + Astro +
Tailwind CSS
diff --git a/src/pages/landing/saas.astro b/src/pages/landing/saas.astro index b0976a3..fe244c8 100644 --- a/src/pages/landing/saas.astro +++ b/src/pages/landing/saas.astro @@ -193,7 +193,7 @@ const meta = { }} > - Astro +
Tailwind CSS + Astro +
Tailwind CSS
diff --git a/src/pages/landing/startup.astro b/src/pages/landing/startup.astro index 4de272a..bc72a9f 100644 --- a/src/pages/landing/startup.astro +++ b/src/pages/landing/startup.astro @@ -57,7 +57,7 @@ const meta = { }} > - Astro +
Tailwind CSS + Astro +
Tailwind CSS