diff --git a/content/posts/website-best-practices.md b/content/posts/website-best-practices.md index c3d8177..1f24d71 100644 --- a/content/posts/website-best-practices.md +++ b/content/posts/website-best-practices.md @@ -813,7 +813,7 @@ Some users have trouble when controls have a different look, color, or shape tha {{< quotecaption partOfType="TechArticle" >}} -Making Content Usable for People with Cognitive and Learning Disabilities, section 4.2.5.3: +Making Content Usable for People with Cognitive and Learning Disabilities, section 4.2.5.3: Clearly Identify Controls and Their Use: How it Helps {{< /quotecaption >}} {{}} @@ -842,7 +842,7 @@ When this is not possible, provide instructions that explain how to use the cont {{< quotecaption partOfType="TechArticle" >}} -Making Content Usable for People with Cognitive and Learning Disabilities, section 4.2.5.2: +Making Content Usable for People with Cognitive and Learning Disabilities, section 4.2.5.2: Clearly Identify Controls and Their Use: What to Do {{< /quotecaption >}} {{}} @@ -1169,7 +1169,7 @@ This includes: {{< quotecaption partOfType="TechArticle" >}} -Making Content Usable for People with Cognitive and Learning Disabilities, section 4.3.1: +Making Content Usable for People with Cognitive and Learning Disabilities, section 4.3.1: Make it Easy to Find the Most Important Tasks and Features of the Site {{< /quotecaption >}} {{}} diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html index 2657327..7b3219d 100644 --- a/layouts/shortcodes/audio.html +++ b/layouts/shortcodes/audio.html @@ -2,6 +2,7 @@ {{- $opus := resources.GetMatch (printf "/a/%s.opus" $name) -}} {{- $mp3 := resources.GetMatch (printf "/a/%s.mp3" $name) -}} {{- $isTranscribed := false -}} +{{- $download_url := "" -}} {{- /* preloading an in-page audio asset under 32 KiB is fine. */ -}} {{- $shouldPreload := lt (len $opus.Content) 32768 -}} {{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}} + +Download audio file {{ $name }}.mp3 +{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}} diff --git a/linter-configs/hintrc b/linter-configs/hintrc index 05ab0b9..e188e5d 100644 --- a/linter-configs/hintrc +++ b/linter-configs/hintrc @@ -44,14 +44,15 @@ "ignore": [ "time", "picture", - "meta[name=color-scheme]", - "meta[name=theme-color]", - "img[decoding]", + "a[download]", "a[referrerpolicy]", - "code[translate]", "a[translate]", + "code[translate]", + "samp[translate]", "span[translate]", - "samp[translate]" + "img[decoding]", + "meta[name=color-scheme]", + "meta[name=theme-color]" ] } ],