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) ) ) -}}