From b9aa569e001cdfc9a354a70084122d460710cb7d Mon Sep 17 00:00:00 2001 From: satnaing Date: Tue, 31 Jan 2023 00:33:41 +0630 Subject: [PATCH] docs: mark as featured and add search logic paragraph --- src/content/blog/astro-paper-2.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/blog/astro-paper-2.md b/src/content/blog/astro-paper-2.md index a987a64..07fbbf0 100644 --- a/src/content/blog/astro-paper-2.md +++ b/src/content/blog/astro-paper-2.md @@ -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.