GoBlog/templates/search.gohtml

21 lines
670 B
Plaintext
Raw Normal View History

2020-11-15 10:34:48 +00:00
{{ 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">
2020-12-13 10:01:19 +00:00
<input type="text" name="q" {{ with .Blog.Search.Placeholder }}placeholder="{{ . }}"{{ end }}>
2020-12-12 21:23:07 +00:00
<input class="fw" type="submit" value="🔍 {{ string .Blog.Lang "search" }}">
</form>
2020-11-15 10:34:48 +00:00
</main>
{{ end }}
{{ define "search" }}
{{ template "base" . }}
{{ end }}