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