feat: regularize front-matter, add new-post command

This commit is contained in:
saicaca
2023-10-18 17:31:11 +08:00
parent ad67a86ef9
commit 767d351bd5
15 changed files with 95 additions and 43 deletions

View File

@@ -1,11 +1,11 @@
---
title: 'My First Blog Post'
pubDate: 2022-10-01
published: 2022-10-01
description: 'This is the first post of my new Astro blog.'
author: 'Astro Learner'
image:
url: 'https://docs.astro.build/assets/full-logo-light.png'
alt: 'The full Astro logo.'
cover:
url:
alt:
tags: ["astro", "blogging", "learning in public"]
categories: ['Foo', 'Bar']
---

View File

@@ -1,13 +1,12 @@
---
title: 'My Second Blog Post'
pubDate: 2021-07-01
published: 2021-07-01
description: 'This is the first post of my new Astro blog.'
author: 'Astro Learner'
image:
url: 'https://docs.astro.build/assets/full-logo-light.png'
alt: 'The full Astro logo.'
cover:
url: 'https://saicaca.github.io/vivia-preview/assets/79905307_p0.jpg'
alt:
tags: ["astro", "blogging", "learning in public"]
cover: 'https://saicaca.github.io/vivia-preview/assets/79905307_p0.jpg'
---
# My First Blog Post

View File

@@ -1,11 +1,11 @@
---
title: 'My Third Blog Post'
pubDate: 2020-07-01
published: 2020-07-01
description: 'This is the first post of my new Astro blog.'
author: 'Astro Learner'
image:
url: 'https://docs.astro.build/assets/full-logo-light.png'
alt: 'The full Astro logo.'
cover:
url:
alt:
tags: ["astro", "blogging", "learning in public"]
---
# My First Blog Post

View File

@@ -1,11 +1,11 @@
---
title: 'My Fourth Blog Post'
pubDate: 2022-07-01
published: 2022-07-01
description: 'This is the first post of my new Astro blog.'
author: 'Astro Learner'
image:
url: 'https://docs.astro.build/assets/full-logo-light.png'
alt: 'The full Astro logo.'
cover:
url:
alt:
tags: ["astro", "blogging", "learning in public"]
---
# My First Blog Post