From 8267d749e3143d33ae377625ec4d1d4089dbe235 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 6 Jul 2023 12:30:15 -0400 Subject: [PATCH] Rename persist param value `none` to `disabled` --- layouts/shortcodes/tabpane.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/tabpane.html b/layouts/shortcodes/tabpane.html index 6d16bce494..ad58f413c7 100644 --- a/layouts/shortcodes/tabpane.html +++ b/layouts/shortcodes/tabpane.html @@ -25,9 +25,9 @@ {{ $_persist := .Get "persist" -}} {{ with $_persist -}} - {{ $matched := findRE "^(header|lang|none)$" . -}} + {{ $matched := findRE "^(header|lang|disabled)$" . -}} {{ if not $matched -}} - {{ errorf "Shortcode %q: parameter %q should be one of 'header', 'lang', or 'none'; but got %s. Error position: %s" $.Name "persist" $_persist $.Position -}} + {{ errorf "Shortcode %q: parameter %q should be one of 'header', 'lang', or 'disabled'; but got %s. Error position: %s" $.Name "persist" $_persist $.Position -}} {{ end -}} {{ end -}} @@ -44,7 +44,7 @@ {{ $langEqualsHeader := default false ($.Get "langEqualsHeader") -}} {{ $deprecatedPersistLang := $_persistLang | default true -}} {{ $persistKeyKind := $_persist | default (cond (eq $langPane "") "lang" "header") -}} -{{ $persistTab := and $deprecatedPersistLang (ne $persistKeyKind "none") -}} +{{ $persistTab := and $deprecatedPersistLang (ne $persistKeyKind "disabled") -}} {{ $rightPane := default false ($.Get "right") -}} {{ $activeSet := false -}} {{/* Scratchpad gets populated through call to .Inner */ -}}