mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
e03348c041
- fix menu element becoming inactive change class active -> focus - set input type seach #198 - add a reset func - add script to clear searchbox when clicked on X sign
29 lines
903 B
HTML
29 lines
903 B
HTML
{{- define "main" }}
|
|
|
|
<header class="page-header">
|
|
<h1>{{ .Title }}
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none"
|
|
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="11" cy="11" r="8"></circle>
|
|
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
</svg>
|
|
</h1>
|
|
{{- if .Description }}
|
|
<div class="post-description">
|
|
{{ .Description }}
|
|
</div>
|
|
{{- end }}
|
|
{{- if not (.Param "hideMeta") }}
|
|
<div class="post-meta">
|
|
{{- partial "translation_list.html" . -}}
|
|
</div>
|
|
{{- end}}
|
|
</header>
|
|
|
|
<div id="searchbox">
|
|
<input id="searchInput" autofocus placeholder="{{.Title}} ↵" aria-label="search" type="search">
|
|
<ul id="searchResults" aria-label="search results"></ul>
|
|
</div>
|
|
|
|
{{- end }}{{/* end main */}}
|