diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-25 17:44:09 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-25 17:44:09 -0400 |
commit | fe72c0070cabfe4518a4d62f519c431ae4cdf4ef (patch) | |
tree | 8fdded7d39d3d20b330e4dd919805c4e12799dec /themes/hugo-pt2021/layouts/shortcodes/table.html | |
parent | 2cbf39cf7302b5f8907fb876c556b2d1600cc341 (diff) | |
download | pablotron.org-fe72c0070cabfe4518a4d62f519c431ae4cdf4ef.tar.bz2 pablotron.org-fe72c0070cabfe4518a4d62f519c431ae4cdf4ef.zip |
hugo-pt2021/layouts/shortcodes/table.html: fix per-page table config override
Diffstat (limited to 'themes/hugo-pt2021/layouts/shortcodes/table.html')
-rw-r--r-- | themes/hugo-pt2021/layouts/shortcodes/table.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 -}} |