mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-11-29 07:48:26 +08:00
44 lines
1.6 KiB
HTML
44 lines
1.6 KiB
HTML
---
|
|
layout: default
|
|
---
|
|
{%- assign locale = page.locale | default: layout.locale | default: site.locale %}
|
|
|
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
|
{% include page__hero.html locale=locale %}
|
|
{% endif %}
|
|
|
|
{% if page.url != "/" and site.breadcrumbs %}
|
|
{% unless paginator %}
|
|
{% include breadcrumbs.html locale=locale %}
|
|
{% endunless %}
|
|
{% endif %}
|
|
|
|
<div id="main" role="main">
|
|
{% include sidebar.html locale=locale %}
|
|
|
|
<div class="archive">
|
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
|
<h1 id="page-title" class="page__title"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>{{ page.title }}</h1>
|
|
{% endunless %}
|
|
|
|
{{ content }}
|
|
|
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
|
{%- case search_provider -%}
|
|
{%- when "lunr" -%}
|
|
<input type="text" id="search" class="search-input" placeholder="{{ site.data.ui-text[locale].search_placeholder_text | default: 'Enter your search term...' }}" />
|
|
<div id="results" class="results"></div>
|
|
{%- when "google" -%}
|
|
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
|
|
<input type="text" id="cse-search-input-box-id" class="search-input" placeholder="{{ site.data.ui-text[locale].search_placeholder_text | default: 'Enter your search term...' }}" />
|
|
</form>
|
|
<div id="results" class="results">
|
|
<gcse:searchresults-only></gcse:searchresults-only>
|
|
</div>
|
|
{%- when "algolia" -%}
|
|
<div class="search-searchbar"></div>
|
|
<div class="search-hits"></div>
|
|
{%- endcase -%}
|
|
</div>
|
|
</div>
|