mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
refactor: update blog schema by removing ogImage alt
This commit is contained in:
@@ -8,12 +8,7 @@ export const blogSchema = z.object({
|
|||||||
featured: z.boolean(),
|
featured: z.boolean(),
|
||||||
draft: z.boolean(),
|
draft: z.boolean(),
|
||||||
tags: z.array(z.string()),
|
tags: z.array(z.string()),
|
||||||
ogImage: z
|
ogImage: z.string().optional(),
|
||||||
.object({
|
|
||||||
src: z.string(),
|
|
||||||
alt: z.string().optional(),
|
|
||||||
})
|
|
||||||
.optional(),
|
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
author: Sat Naing
|
||||||
|
pubDatetime: 2022-09-23T15:22:00Z
|
||||||
|
title: Adding new posts in AstroPaper theme
|
||||||
|
postSlug: adding-new-posts-in-astropaper-theme
|
||||||
|
featured: true
|
||||||
|
draft: false
|
||||||
|
tags:
|
||||||
|
- docs
|
||||||
|
ogImage: ""
|
||||||
|
description:
|
||||||
|
Some rules & recommendations for creating or adding new posts using AstroPaper
|
||||||
|
theme.
|
||||||
|
---
|
||||||
|
|
||||||
|
Here are some rules/recommendations, tips & ticks for creating new posts in AstroPaper blog theme.
|
||||||
@@ -7,9 +7,7 @@ featured: true
|
|||||||
draft: false
|
draft: false
|
||||||
tags:
|
tags:
|
||||||
- docs
|
- docs
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description:
|
description:
|
||||||
Some rules & recommendations for creating or adding new posts using AstroPaper
|
Some rules & recommendations for creating or adding new posts using AstroPaper
|
||||||
theme.
|
theme.
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ draft: false
|
|||||||
tags:
|
tags:
|
||||||
- color-schemes
|
- color-schemes
|
||||||
- docs
|
- docs
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description:
|
description:
|
||||||
How you can enable/disable light & dark mode; and customize color schemes
|
How you can enable/disable light & dark mode; and customize color schemes
|
||||||
of AstroPaper theme.
|
of AstroPaper theme.
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ draft: false
|
|||||||
tags:
|
tags:
|
||||||
- docs
|
- docs
|
||||||
- release
|
- release
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description: New feature in AstroPaper v1.4.0, introducing dynamic OG image generation for blog posts.
|
description: New feature in AstroPaper v1.4.0, introducing dynamic OG image generation for blog posts.
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ draft: false
|
|||||||
tags:
|
tags:
|
||||||
- configuration
|
- configuration
|
||||||
- docs
|
- docs
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description: How you can make AstroPaper theme absolutely yours.
|
description: How you can make AstroPaper theme absolutely yours.
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ tags:
|
|||||||
- docs
|
- docs
|
||||||
- forestry-cms
|
- forestry-cms
|
||||||
- astro-paper
|
- astro-paper
|
||||||
ogImage:
|
ogImage: https://res.cloudinary.com/noezectz/v1663745737/astro-paper/astropaper-x-forestry-og_kqfwp0.png
|
||||||
src: https://res.cloudinary.com/noezectz/v1663745737/astro-paper/astropaper-x-forestry-og_kqfwp0.png
|
|
||||||
alt: ""
|
|
||||||
description:
|
description:
|
||||||
Step by step process of connecting Astro-Paper blog theme with Forestry
|
Step by step process of connecting Astro-Paper blog theme with Forestry
|
||||||
Headless CMS.
|
Headless CMS.
|
||||||
|
|||||||
@@ -10,9 +10,7 @@ tags:
|
|||||||
- TailwindCSS
|
- TailwindCSS
|
||||||
- HeadlessCMS
|
- HeadlessCMS
|
||||||
- Blog
|
- Blog
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description:
|
description:
|
||||||
"EXAMPLE POST: My experience about developing my first portfolio website and a blog
|
"EXAMPLE POST: My experience about developing my first portfolio website and a blog
|
||||||
using NextJS and a headless CMS."
|
using NextJS and a headless CMS."
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ featured: false
|
|||||||
draft: false
|
draft: false
|
||||||
tags:
|
tags:
|
||||||
- color-schemes
|
- color-schemes
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description:
|
description:
|
||||||
Some of the well-crafted, predefined color schemes for AstroPaper blog
|
Some of the well-crafted, predefined color schemes for AstroPaper blog
|
||||||
theme.
|
theme.
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ draft: false
|
|||||||
tags:
|
tags:
|
||||||
- TypeScript
|
- TypeScript
|
||||||
- Astro
|
- Astro
|
||||||
ogImage:
|
ogImage: ""
|
||||||
src: ""
|
|
||||||
alt: ""
|
|
||||||
description: "EXAMPLE POST: About Tailwind Typography Plugin and how you can use it effectively."
|
description: "EXAMPLE POST: About Tailwind Typography Plugin and how you can use it effectively."
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user