mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Improve image transcript navigation
- Identify the transcript with a subheading, ending in a period so that the aria-description separates the identifier from the concept. - Put the transcript in a <section> - Snuck in a trivial syntax fix for the generator element.
This commit is contained in:
parent
8579559978
commit
372589a57a
2 changed files with 6 additions and 4 deletions
|
@ -63,5 +63,5 @@
|
|||
<meta property="og:image:alt" content="White-on-black colon and semicolon">
|
||||
<meta property="og:url" content="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
||||
<meta property="og:description" content="{{ $description }}">
|
||||
{{ hugo.Generator }}
|
||||
{{ hugo.Generator | replaceRE " />" ">" | safeHTML}}
|
||||
</head>
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<details>
|
||||
<summary>Toggle transcript</summary>
|
||||
<div itemprop="embeddedTextCaption"
|
||||
{{ with .Parent -}}
|
||||
id="transcript-{{ .Get "id" }}"
|
||||
{{- end -}}>
|
||||
<section id="transcript-{{ .Get "id" }}">
|
||||
<h5>Image transcript.</h5>
|
||||
{{- end -}}
|
||||
<div itemprop="embeddedTextCaption">
|
||||
{{ .Inner | markdownify | safeHTML }}
|
||||
</div>
|
||||
</section>
|
||||
</details>
|
||||
|
|
Loading…
Reference in a new issue