aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-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" -}}