mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +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(),
|
||||
draft: z.boolean(),
|
||||
tags: z.array(z.string()),
|
||||
ogImage: z
|
||||
.object({
|
||||
src: z.string(),
|
||||
alt: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
ogImage: z.string().optional(),
|
||||
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
|
||||
tags:
|
||||
- docs
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description:
|
||||
Some rules & recommendations for creating or adding new posts using AstroPaper
|
||||
theme.
|
||||
|
||||
@@ -8,9 +8,7 @@ draft: false
|
||||
tags:
|
||||
- color-schemes
|
||||
- docs
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description:
|
||||
How you can enable/disable light & dark mode; and customize color schemes
|
||||
of AstroPaper theme.
|
||||
|
||||
@@ -8,9 +8,7 @@ draft: false
|
||||
tags:
|
||||
- docs
|
||||
- release
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description: New feature in AstroPaper v1.4.0, introducing dynamic OG image generation for blog posts.
|
||||
---
|
||||
|
||||
|
||||
@@ -8,9 +8,7 @@ draft: false
|
||||
tags:
|
||||
- configuration
|
||||
- docs
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description: How you can make AstroPaper theme absolutely yours.
|
||||
---
|
||||
|
||||
|
||||
@@ -9,9 +9,7 @@ tags:
|
||||
- docs
|
||||
- forestry-cms
|
||||
- astro-paper
|
||||
ogImage:
|
||||
src: https://res.cloudinary.com/noezectz/v1663745737/astro-paper/astropaper-x-forestry-og_kqfwp0.png
|
||||
alt: ""
|
||||
ogImage: https://res.cloudinary.com/noezectz/v1663745737/astro-paper/astropaper-x-forestry-og_kqfwp0.png
|
||||
description:
|
||||
Step by step process of connecting Astro-Paper blog theme with Forestry
|
||||
Headless CMS.
|
||||
|
||||
@@ -10,9 +10,7 @@ tags:
|
||||
- TailwindCSS
|
||||
- HeadlessCMS
|
||||
- Blog
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description:
|
||||
"EXAMPLE POST: My experience about developing my first portfolio website and a blog
|
||||
using NextJS and a headless CMS."
|
||||
|
||||
@@ -7,9 +7,7 @@ featured: false
|
||||
draft: false
|
||||
tags:
|
||||
- color-schemes
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description:
|
||||
Some of the well-crafted, predefined color schemes for AstroPaper blog
|
||||
theme.
|
||||
|
||||
@@ -7,9 +7,7 @@ draft: false
|
||||
tags:
|
||||
- TypeScript
|
||||
- Astro
|
||||
ogImage:
|
||||
src: ""
|
||||
alt: ""
|
||||
ogImage: ""
|
||||
description: "EXAMPLE POST: About Tailwind Typography Plugin and how you can use it effectively."
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user