Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ external: # updated automatically, do not edit
view_count: 177
---

## Resources

{{< button url="https://cwickham.github.io/accessible-branded-documents/" text="Slides" icon="tabler--presentation" >}}
{{< button url="https://github.com/cwickham/accessible-branded-documents" text="Demo repo" icon="simple-icons--github" >}}
5 changes: 5 additions & 0 deletions layouts/resources/term.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ <h3 class="text-sm font-medium text-gray-700 mb-2">
{{- /* Video transcript or regular content */ -}}
{{ if eq .Params.resource_type "video" }}
{{ $transcriptResource := .Resources.Get "transcription.txt" }}
{{ if and $transcriptResource .Content }}
<div class="w-full prose text-[1.075rem] prose-quoteless post-content max-w-none lg:max-w-[65ch] mb-8">
{{ .Content | safeHTML }}
</div>
{{ end }}
{{ if $transcriptResource }}
<div data-pagefind-body class="w-full prose text-[1.075rem] prose-quoteless post-content max-w-none lg:max-w-[65ch]">
{{ partial "heading.html" (dict "level" 2 "text" "Transcript") }}
Expand Down
1 change: 1 addition & 0 deletions safelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ icon-[simple-icons--mastodon]
icon-[simple-icons--orcid]
icon-[simple-icons--youtube]
icon-[tabler--external-link]
icon-[tabler--presentation]
object-contain
object-cover
bg-blue-300
Expand Down
Loading