mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-24 16:17:13 +00:00
- Close #405 - See #681 (improve consistency after #571 Bootstrap 4 migration) - Add `search_results` to language file - example site: Add example `tutorial` folder - example site: Set privacy page to hidden (draft)
26 lines
816 B
HTML
26 lines
816 B
HTML
{{ $ := .root }}
|
|
{{ $page := .page }}
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-4 section-heading">
|
|
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
|
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
</div>
|
|
<div class="col-xs-12 col-md-8">
|
|
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
|
|
|
<div id="search-box">
|
|
{{ if eq $.Site.Params.search.engine 1 }}
|
|
<input name="q" id="search-query" placeholder="{{ i18n "search_placeholder" }}" autocapitalize="off" autocomplete="off" autocorrect="off" role="textbox" spellcheck="false" type="search">
|
|
{{ else }}
|
|
<!-- Search box will appear here -->
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div id="search-hits">
|
|
<!-- Search results will appear here -->
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|