From 81a841c92d62f2ed8d9134b0b18623b8b2471661 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 8 Jan 2026 12:17:51 +0100 Subject: [PATCH] #791, bring back missing ID for columns to apply ratio --- layouts/_shortcodes/columns.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/layouts/_shortcodes/columns.html b/layouts/_shortcodes/columns.html index d928fb9..da2433c 100644 --- a/layouts/_shortcodes/columns.html +++ b/layouts/_shortcodes/columns.html @@ -5,6 +5,7 @@ "attributes" (cond .IsNamedParams .Params dict) "merge" (dict "class" (slice "book-columns" "flex" "flex-wrap") + "id" (printf "book-columns-%d" .Ordinal) ) ) -}}
@@ -16,15 +17,19 @@ {{- end -}}
{{- else -}} -{{- if .Get "ratio" -}}{{- end -}} +{{- if .Get "ratio" -}} + +{{- end -}} {{- $attributes := partial "docs/text/mapper" (dict "attributes" (cond .IsNamedParams .Params dict) "merge" (dict "class" (slice "book-columns") + "id" (printf "book-columns-%d" .Ordinal) ) ) -}}