feat: add front-matter variable category

This commit is contained in:
saicaca
2023-11-07 12:35:52 +08:00
parent 2b000f7e55
commit b171ad463e
10 changed files with 22 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ const {page} = Astro.props;
title={entry.data.title}
tags={entry.data.tags}
categories={entry.data.categories}
category={entry.data.category}
published={entry.data.published}
url={getPostUrlBySlug(entry.slug)}
image={entry.data.image}