aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-20 19:29:29 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-20 19:29:29 -0400
commitfa7345b534ec49c30d31feac308caf4cc85b9ac9 (patch)
treee42559d332bc215e2a7aa5105dfa0aa338675ab8
parentc1cbe17abab5eab02144c4ab649279da1703365e (diff)
downloadpablotron.org-fa7345b534ec49c30d31feac308caf4cc85b9ac9.tar.bz2
pablotron.org-fa7345b534ec49c30d31feac308caf4cc85b9ac9.zip
themes/hugo-pt2021/layouts/shortcodes/tables.html: fix header and cell tooltip overrides
-rw-r--r--themes/hugo-pt2021/layouts/shortcodes/table.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/hugo-pt2021/layouts/shortcodes/table.html b/themes/hugo-pt2021/layouts/shortcodes/table.html
index 4f7c337..907ef44 100644
--- a/themes/hugo-pt2021/layouts/shortcodes/table.html
+++ b/themes/hugo-pt2021/layouts/shortcodes/table.html
@@ -149,8 +149,8 @@ you can override the `class` attribute for individual cells.
<tr>
{{- range $x, $col := $table.cols -}}
<th
- title='{{- default $col.tip $col.name -}}'
- aria-label='{{- default $col.tip $col.name -}}'
+ title='{{- default $col.name $col.tip -}}'
+ aria-label='{{- default $col.name $col.tip -}}'
data-{{- $dp -}}th_x='{{- $x -}}'
data-{{- $dp -}}='{{- $col.id -}}'
>
@@ -206,7 +206,7 @@ you can override the `class` attribute for individual cells.
{{- end -}}
{{/* get cell tip */}}
- {{- $tip := (default $col.tip $col.name) -}}
+ {{- $tip := (default $col.name $col.tip) -}}
{{- if $is_map -}}
{{- if index $cell "tip" -}}
{{- $tip = index $cell "tip" -}}