mirror of https://github.com/jlelse/GoBlog
21 lines
670 B
Plaintext
21 lines
670 B
Plaintext
{{ define "title" }}
|
|
<title>{{ with .Blog.Search.Title }}{{ . }} - {{ end }}{{ .Blog.Title }}</title>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
{{ with .Blog.Search.Title }}<h1>{{ . }}</h1>{{ end }}
|
|
{{ with .Blog.Search.Description }}{{ md . }}{{ end }}
|
|
{{ if (or .Blog.Search.Title .Blog.Search.Description) }}
|
|
<hr>
|
|
{{ end }}
|
|
<form class="fw-form p" method="post">
|
|
<input type="text" name="q" {{ with .Blog.Search.Placeholder }}placeholder="{{ . }}"{{ end }}>
|
|
<input class="fw" type="submit" value="🔍 {{ string .Blog.Lang "search" }}">
|
|
</form>
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "search" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |