mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
docs: mark as featured and add search logic paragraph
This commit is contained in:
@@ -3,6 +3,7 @@ author: Sat Naing
|
|||||||
pubDatetime: 2023-01-30T15:57:52.737Z
|
pubDatetime: 2023-01-30T15:57:52.737Z
|
||||||
title: AstroPaper 2.0
|
title: AstroPaper 2.0
|
||||||
postSlug: astro-paper-2
|
postSlug: astro-paper-2
|
||||||
|
featured: true
|
||||||
ogImage: ""
|
ogImage: ""
|
||||||
tags:
|
tags:
|
||||||
- release
|
- release
|
||||||
@@ -36,6 +37,10 @@ Contents are now fetched with `getCollection` function. No relative path to the
|
|||||||
+ const postImportResult = await getCollection("blog");
|
+ const postImportResult = await getCollection("blog");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Modified Search Logic for better Search Result
|
||||||
|
|
||||||
|
In the older version of AstroPaper, when someone search some article, the search cirtea keys that will be searched are `title`, `description` and `headings` (heading means all the headings h1 ~ h6 of the blog post). In AstroPaper v2, only `title` and `description` will be searched as the user types.
|
||||||
|
|
||||||
### Renamed Frontmatter Properties
|
### Renamed Frontmatter Properties
|
||||||
|
|
||||||
The following frontmatter properties are renamed.
|
The following frontmatter properties are renamed.
|
||||||
|
|||||||
Reference in New Issue
Block a user