diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 05:22:56 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 05:22:56 +0100 |
commit | c123fc189929429164bf7268a9e7d5974884499f (patch) | |
tree | 2b33979e9df4ed36d77e23f9a9571fad4f90935c /layouts/partials/leading_image.html | |
parent | ecb7569b3c047f6e6845f8a49f6eee3d6762a968 (diff) | |
download | hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.tar.gz hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.tar.bz2 hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.zip |
more translations
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> |