2020-12-06 13:49:50 +01:00
|
|
|
{{- define "main" }}
|
|
|
|
|
|
|
|
<header class="page-header">
|
2021-09-05 14:52:39 +02:00
|
|
|
<h1>{{- (printf "%s " .Title ) | htmlUnescape -}}
|
2020-12-06 13:49:50 +01:00
|
|
|
<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>
|
2021-01-27 16:49:21 +01:00
|
|
|
{{- if .Description }}
|
|
|
|
<div class="post-description">
|
|
|
|
{{ .Description }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
2023-02-13 21:32:40 +01:00
|
|
|
{{- if and (.Param "showTranslationListInPosts") (not (.Param "hideMeta")) }}
|
|
|
|
<div class="post-meta">
|
|
|
|
{{- partial "translation_list.html" . -}}
|
|
|
|
</div>
|
2021-03-30 14:37:36 +02:00
|
|
|
{{- end }}
|
2020-12-06 13:49:50 +01:00
|
|
|
</header>
|
|
|
|
|
2020-12-18 07:15:10 +01:00
|
|
|
<div id="searchbox">
|
2021-10-30 10:27:22 +02:00
|
|
|
<input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s ↵" .Title) }}"
|
|
|
|
aria-label="search" type="search" autocomplete="off">
|
2020-12-06 13:49:50 +01:00
|
|
|
<ul id="searchResults" aria-label="search results"></ul>
|
|
|
|
</div>
|
|
|
|
|
2021-02-07 17:04:34 +01:00
|
|
|
{{- end }}{{/* end main */}}
|