refactor: update blog schema by removing ogImage alt

This commit is contained in:
satnaing
2023-01-30 12:12:13 +06:30
parent f73f02e6e9
commit f157ee6cf3
10 changed files with 25 additions and 30 deletions
+1 -6
View File
@@ -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(),
});
+16
View File
@@ -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.
+1 -3
View File
@@ -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.
+1 -3
View File
@@ -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."
+1 -3
View File
@@ -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.
+1 -3
View File
@@ -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."
---