mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
ff0c7deafa
Link targets need to be focusable to work with VoiceOver. Making <main> focusable causes some side-effects, like making the TAB key go to the beginning of <main> instead of the element after the currently-clicked region. Also removes the annoying outline around "main" in some non-mainstream browsers, without having to add extra CSS.
12 lines
494 B
HTML
12 lines
494 B
HTML
{{ define "main" -}}
|
|
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
|
<main>
|
|
<h1 id="h1" tabindex="-1">Search</h1>
|
|
<p role="note">This page is an unfinished work-in-progress.</p>
|
|
{{ partial "search.html" . }}
|
|
<hr />
|
|
<div itemprop="mainEntity" itemscope="" itemtype="https://schema.org/SearchResultsPage" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
|
{{ readFile "/dynamic/search-results.html" | safeHTML }}
|
|
</div>
|
|
</main>
|
|
{{ end }}
|