Adjust templates layout for hugo 0.146, potentially breaking change

This commit is contained in:
Alex Shpak
2025-05-31 01:38:33 +02:00
parent 24d3465980
commit f2c703e155
45 changed files with 5 additions and 11 deletions
+9
View File
@@ -0,0 +1,9 @@
{{- $ratio := (split (.Get "ratio") ":") -}}
<div class="book-columns flex flex-wrap{{ with .Get "class" }} {{ . }}{{ end }}">
{{ range $index, $content := split .InnerDeindent "<--->" }}
{{- $grow := default 1 (index $ratio $index) -}}
<div class="flex-even markdown-inner" style="flex-grow: {{ $grow }};">
{{ $content | safeHTML }}
</div>
{{ end }}
</div>