MarginaliaSearch/marginalia_nu/src/main/resources/templates/edge/search-results.hdb

50 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-05-19 15:45:26 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Marginalia Search - {{query}}</title>
<link rel="stylesheet" href="/style-new.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Marginalia">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
</head>
<body>
<!-- Hi there, fellow human being :-) -->
{{>edge/parts/search-header}}
<article>
{{>edge/parts/search-form}}
{{#each domainResults}}{{>edge/browse-result-rb}}{{/each}}
2022-05-19 15:45:26 +00:00
<section class="cards">
{{#if maintenanceMessage}}<section class="card problems onlyscreen"><h2>Maintenance</h2><p class="description">{{maintenanceMessage}}</p></section>{{/if}}
{{#if evalResult}}<section class="card semantic onlyscreen"><h2>Evaluation</h2><p class="description">{{query}} = {{evalResult}}</p><hr class="w3m-helper" /></section>{{/if}}
{{#each wiki.entries}}<section class="card semantic onlyscreen"><h2>Encyclopedia</h2><p class="description"><a href="https://encyclopedia.marginalia.nu/wiki/{{.}}"><em>{{.}}</em> Encyclopedia Page</a></p><hr class="w3m-helper" /></section>{{/each}}
{{#if focusDomain}}
<section class="card semantic">
<h2>{{focusDomain}}</h2>
<p class="description">
Showing results from <tt>{{focusDomain}}</tt>
</p>
<div class="utils">
<a href="/site/{{focusDomain}}">Info</a>
<a href="/explore/{{focusDomain}}">Similar Domains</a>
</div>
</section>
{{/if}}
{{#each results}}{{>edge/search-result}}{{/each}}
{{#unless evalResult}}{{#if problems}}<section class="card problems onlyscreen"><h2>Suggestions</h2><ul class="onlyscreen search-problems">{{#each problems}}<li>{{{.}}}</li>{{/each}}</ul></section> {{/if}}{{/unless}}
</section>
</article>
{{>edge/parts/search-footer}}
</body>