Support Native Search (Ghost V5) (#465)
This commit is contained in:
parent
cb47498b48
commit
1ea6681f76
@ -33,6 +33,10 @@
|
|||||||
"dark_mode_logo": {
|
"dark_mode_logo": {
|
||||||
"type": "image"
|
"type": "image"
|
||||||
},
|
},
|
||||||
|
"enable_native_search": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"search_api_key": {
|
"search_api_key": {
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
@ -19,7 +19,7 @@ This header template is shared across all the pages.
|
|||||||
{{@site.title}}
|
{{@site.title}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<button class="m-icon-button in-mobile-topbar js-open-search" aria-label="{{t "Open search"}}">
|
<button class="m-icon-button in-mobile-topbar {{^if @custom.enable_native_search}}js-open-search{{/if}}" {{#if @custom.enable_native_search}}data-ghost-search{{/if}} aria-label="{{t "Open search"}}">
|
||||||
<span class="icon-search" aria-hidden="true"></span>
|
<span class="icon-search" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -118,7 +118,7 @@ This header template is shared across all the pages.
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="m-nav__right">
|
<div class="m-nav__right">
|
||||||
<button class="m-icon-button in-menu-main js-open-search" aria-label="{{t "Open search"}}">
|
<button class="m-icon-button in-menu-main {{^if @custom.enable_native_search}}js-open-search{{/if}}" {{#if @custom.enable_native_search}}data-ghost-search{{/if}} aria-label="{{t "Open search"}}">
|
||||||
<span class="icon-search" aria-hidden="true"></span>
|
<span class="icon-search" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="m-toggle-darkmode js-tooltip" data-tippy-content="{{t "Toggle dark mode"}}" tabindex="0">
|
<div class="m-toggle-darkmode js-tooltip" data-tippy-content="{{t "Toggle dark mode"}}" tabindex="0">
|
||||||
|
Loading…
Reference in New Issue
Block a user