mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 13:30:26 +00:00
21 lines
722 B
HTML
21 lines
722 B
HTML
{{define "search:"}}Search: {{.}}{{end}}
|
||
{{define "title"}}{{template "search:" .Query}}{{end}}
|
||
{{define "body"}}
|
||
<main class="main-width">
|
||
<h1>{{block "search results for" .Query}}Search results for ‘{{.}}’{{end}}</h1>
|
||
{{if .MatchedHyphaName}}
|
||
<p>{{block "go to hypha" .}}Go to hypha <a class="wikilink{{if .HasExactMatch | not}} wikilink_new{{end}}" href="/hypha/{{.MatchedHyphaName}}">{{beautifulName .MatchedHyphaName}}</a>.{{end}}</p>
|
||
{{end}}
|
||
{{if len .Results}}
|
||
<ol>
|
||
{{range .Results}}
|
||
<li>
|
||
<a class="wikilink" href="/hypha/{{.}}">{{beautifulName .}}</a>
|
||
</li>
|
||
{{end}}
|
||
</ol>
|
||
{{else}}
|
||
<p>{{block "search no results" .}}No results{{end}}</p>
|
||
{{end}}
|
||
</main>
|
||
{{end}} |