File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 7575 {{!-- This #block helper will inject a stylesheet for a specific page --}}
7676 {{{ block " styles" }}}
7777
78- {{!-- This #block helper will pull data from the hero partial
78+ {{!-- This #block helper will pull data from the hero partial
7979 to inject styles of the hero image to make it responsive --}}
8080 {{{ block " herobackground" }}}
8181
9696 // @license-end
9797 </script >
9898
99+ {{ #if @custom.enable_native_search }}
100+ <script >
101+ const nativeSearchEnabled = true
102+ </script >
103+ {{ /if }}
104+
99105 {{ #if @custom.search_api_key }}
100106 <script >
101107 const ghostSearchApiKey = " {{@custom.search_api_key}}"
129135 {{{ body }}}
130136
131137 {{!-- Search form --}}
132- {{> search }}
138+ {{ ^if @custom.enable_native_search }}
139+ {{> search }}
140+ {{ /if }}
133141
134142 {{!-- The footer --}}
135143 {{> footer }}
Original file line number Diff line number Diff line change 8787 "desktop" : " assets/screenshot-desktop.jpg" ,
8888 "mobile" : " assets/screenshot-mobile.jpg"
8989 },
90- "version" : " 2.1.1 "
90+ "version" : " 2.1.2 "
9191}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
22
33services :
44 ghost :
5- image : ghost:5.22.1
5+ image : ghost:5.22.10
66 container_name : ghost
77 volumes :
88 - ./..:/var/lib/ghost/content/themes/liebling:Z
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ $(() => {
6666 } ;
6767
6868 const trySearchFeature = ( ) => {
69- if ( typeof ghostSearchApiKey !== 'undefined' ) {
69+ if ( typeof ghostSearchApiKey !== 'undefined' && typeof nativeSearchEnabled === 'undefined' ) {
7070 getAllPosts ( ghostHost , ghostSearchApiKey ) ;
7171 } else {
7272 $openSearch . css ( 'visibility' , 'hidden' ) ;
You can’t perform that action at this time.
0 commit comments