diff --git a/CHANGELOG.md b/CHANGELOG.md index 0136c2d..d1f555f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to `sky` will be documented in this file +## 2.1.5 - 2022-07-05 + +### What's Changed + +- introduce full-text search by @thyseus in https://github.com/lara-zeus/sky/pull/23 + +**Full Changelog**: https://github.com/lara-zeus/sky/compare/2.1.4...2.1.5 + ## 2.1.3 - 2022-06-21 update core version diff --git a/config/zeus-sky.php b/config/zeus-sky.php index c7e3df9..4d1dbe4 100644 --- a/config/zeus-sky.php +++ b/config/zeus-sky.php @@ -68,6 +68,11 @@ */ 'theme' => 'zeus', + /** + * css class to apply on found search result, e.g. `bg-yellow-400`. + */ + 'search_result_highlight_css_class' => 'highlight', + /** * available locales, this currently used only in tags manager. */ diff --git a/database/migrations/2022_07_04_104832_add_indices_to_posts.php b/database/migrations/2022_07_04_104832_add_indices_to_posts.php new file mode 100644 index 0000000..b2ac0ab --- /dev/null +++ b/database/migrations/2022_07_04_104832_add_indices_to_posts.php @@ -0,0 +1,18 @@ +index('title'); + $table->index('slug'); + $table->index('description'); + $table->fullText('content'); + }); + } +}; diff --git a/docs/configuration.md b/docs/configuration.md index 0acee82..fba459d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -37,6 +37,16 @@ return [ * set the prefix for pages URL. */ 'page_uri_prefix' => 'page', + + /** + * enable or disable individual Resources. + */ + 'enabled_resources' => [ + LaraZeus\Sky\Filament\Resources\PostResource::class, + LaraZeus\Sky\Filament\Resources\PageResource::class, + LaraZeus\Sky\Filament\Resources\TagResource::class, + LaraZeus\Sky\Filament\Resources\FaqResource::class, + ], /** * this will be setup the default seo site title. read more about it in 'laravel-seo' diff --git a/resources/lang/ar.json b/resources/lang/ar.json index 503af1a..c3c56a6 100644 --- a/resources/lang/ar.json +++ b/resources/lang/ar.json @@ -43,7 +43,7 @@ "Post Slug": "الرابط المختصر", "Write an excerpt for your post": "اكتب ملخص للمقالة", "Show All posts in": "هرض كافة المثالات في", - "No posts yet": "لاتوجد تدوينات حاليا", + "No posts found": "لاتوجد تدوينات حاليا", "FAQ": "الأسئلة الشائعة", "frequently asked questions": "الأسئلة الشائعة", "FAQs": "الأسئلة الشائعة", diff --git a/resources/lang/en.json b/resources/lang/en.json index 19bc312..6ddef43 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -43,7 +43,7 @@ "Post Slug": "Post Slug", "Write an excerpt for your post": "Write an excerpt for your post", "Show All posts in": "Show All posts in", - "No posts yet": "No posts yet", + "No posts found": "No posts found", "FAQ": "FAQ", "frequently asked questions": "frequently asked questions", "FAQs": "FAQs", diff --git a/resources/views/themes/zeus/home.blade.php b/resources/views/themes/zeus/home.blade.php index fb5ce36..f703c24 100644 --- a/resources/views/themes/zeus/home.blade.php +++ b/resources/views/themes/zeus/home.blade.php @@ -1,4 +1,8 @@