From fe72c0070cabfe4518a4d62f519c431ae4cdf4ef Mon Sep 17 00:00:00 2001
From: Paul Duncan <pabs@pablotron.org>
Date: Mon, 25 Oct 2021 17:44:09 -0400
Subject: hugo-pt2021/layouts/shortcodes/table.html: fix per-page table config
 override

---
 themes/hugo-pt2021/layouts/shortcodes/table.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'themes/hugo-pt2021/layouts/shortcodes')

diff --git a/themes/hugo-pt2021/layouts/shortcodes/table.html b/themes/hugo-pt2021/layouts/shortcodes/table.html
index 7d46834..ee88738 100644
--- a/themes/hugo-pt2021/layouts/shortcodes/table.html
+++ b/themes/hugo-pt2021/layouts/shortcodes/table.html
@@ -58,7 +58,7 @@ the search config path is:
 {{- $config := (dict "data_prefix" "" "table_class" "table" "align_left" "has-text-left" "align_center" "has-text-centered" "align_justify" "has-text-justified" "align_right" "has-text-right") -}}
 {{- if index $.Page.Params "table_config" -}}
   {{/* use table config from page front matter */}}
-  {{- $config = $.Params.table_shortcode -}}
+  {{- $config = $.Page.Params.table_config -}}
 {{- else if index $.Site.Params "table_config" -}}
   {{/* use table config from site config */}}
   {{- $config = $.Site.Params.table_shortcode -}}
-- 
cgit v1.2.3