Commit e5004be1 authored by Christian Engwer's avatar Christian Engwer

fix image height in gallery

parent 8158c0f2
Pipeline #14875 passed with stage
in 29 seconds
......@@ -6,11 +6,11 @@
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
{{ end }}
{{ $c := $.Scratch.Get "counter" }}
<div style="height:100%; width: 100%; text-align: center; white-space: nowrap;">
<div style="height: auto; width: 100%; text-align: center; white-space: nowrap;">
{{ range $img := .Params.image }}<img src="{{ $img }}"
class="figure-img ratio img-responsive img-rounded"
style="max-width: calc((100% / {{ $c }}) - 1ex);
max-height: 100%;
max-height: calc(50vh);
display: inline-block; scale=10;
margin-left: .5ex; margin-right: .5ex;"
alt="{{ $.Title }}">{{ end }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment