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? 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/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/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 + +

{ - return data.permalink || defaultSlug; - }, }); export const collections = { 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}

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
diff --git a/src/types.ts b/src/types.ts index 51a1deb..16a42a6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -20,7 +20,6 @@ export interface Post { Content: unknown; content?: string; - readingTime: number; } export interface MetaSEO { diff --git a/src/utils/blog.ts b/src/utils/blog.ts index 3faf0ca..2396f8c 100644 --- a/src/utils/blog.ts +++ b/src/utils/blog.ts @@ -5,7 +5,7 @@ import { cleanSlug } from './permalinks'; const getNormalizedPost = async (post: CollectionEntry<'posts'>): 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, }; };