mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:01:42 +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
|
||||
title: AstroPaper 2.0
|
||||
postSlug: astro-paper-2
|
||||
featured: true
|
||||
ogImage: ""
|
||||
tags:
|
||||
- release
|
||||
@@ -36,6 +37,10 @@ Contents are now fetched with `getCollection` function. No relative path to the
|
||||
+ 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
|
||||
|
||||
The following frontmatter properties are renamed.
|
||||
|
||||
Reference in New Issue
Block a user