diff options
Diffstat (limited to 'layouts/partials/leading_image.html')
-rw-r--r-- | layouts/partials/leading_image.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/leading_image.html b/layouts/partials/leading_image.html index 0dda603..2f8e491 100644 --- a/layouts/partials/leading_image.html +++ b/layouts/partials/leading_image.html @@ -5,8 +5,8 @@ {{ $image = resources.Get (index .Params.images 0) }} {{ end }} {{ with $image }} - <div class="tc"> - <div class="relative dib"> + <div class="text-center"> + <div class="relative inline-block"> <img src="{{ if ne .MediaType.SubType "svg" }} {{ $image := .Fit (default "768x400" $.Params.image_size) }} @@ -20,7 +20,7 @@ {{ with $.Params.caption }} <a href="{{ .url }}" - class="near-white block absolute bottom-0 right-0 p-2 bg-black-30 br2" + class="text-white block absolute bottom-0 right-0 p-2 bg-black bg-opacity-40 rounded" > {{ .text }} </a> |