diff --git a/content/en/docs/reference/command-line-tools-reference/feature-gates.md b/content/en/docs/reference/command-line-tools-reference/feature-gates.md index 5cdfeddead..c389f320c8 100644 --- a/content/en/docs/reference/command-line-tools-reference/feature-gates.md +++ b/content/en/docs/reference/command-line-tools-reference/feature-gates.md @@ -52,7 +52,7 @@ For a reference to old feature gates that are removed, please refer to ### Feature gates for Alpha or Beta features -{{< table caption="Feature gates for features in Alpha or Beta states" >}} +{{< table caption="Feature gates for features in Alpha or Beta states" sortable="true" >}} | Feature | Default | Stage | Since | Until | |---------|---------|-------|-------|-------| @@ -224,7 +224,7 @@ For a reference to old feature gates that are removed, please refer to ### Feature gates for graduated or deprecated features -{{< table caption="Feature Gates for Graduated or Deprecated Features" >}} +{{< table caption="Feature Gates for Graduated or Deprecated Features" sortable="true">}} | Feature | Default | Stage | Since | Until | |---------|---------|-------|-------|-------| diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fabfa4edc4..df4fba66ca 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -83,6 +83,10 @@ +{{- if .HasShortcode "table" -}} + +{{- end -}} + {{- if eq (lower .Params.cid) "community" -}} {{- if eq .Params.community_styles_migrated true -}} diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index d92bc17a9c..7c58e93bb7 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -1,6 +1,11 @@ {{ $hasCaption := isset .Params "caption" }} {{ $caption := .Get "caption" }} +{{ $sortable := .Get "sortable" }} {{ $captionEl := printf "