HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.26k stars 2.9k forks source link

gallery shortcut add dark background for png images #3052

Closed alanlivio closed 7 months ago

alanlivio commented 8 months ago

Preliminary Checks

Description

The gallery shortcode adds a dark background for the png image. This behavior does not happen when using the figure shortcode.

Reproduction Link

no repo

Steps to Reproduce

----
----
{{< figure src="albums/partners/capes.png" >}}
{{< gallery album="partners" >}}

See results bellow.

image

Orginal image file below

capes

Expected Result

It should have a white background as when using the figure shortcode.

Actual Result

The gallery shortcode adds a dark background for the png image.

What Hugo Module versions does your site use?

github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.6 // indirect
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.1 // indirect
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.2 // indirect

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Microsoft Edge

Which Hugo Blox template are you using?

theme-academic-cv

What version of Hugo are you using?

hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=snap:0.122.0

gcushen commented 8 months ago

I haven't investigated this, but the issue could be easily worked around in one of two ways:

alanlivio commented 8 months ago

thanks @gcushen. How can I extend the Hugo blox css from my content file (.md file)?

github-actions[bot] commented 7 months ago

This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the main branch, consider contributing a Pull Request with a fix.

If this is a feature request, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.

This issue will automatically close soon if no further activity occurs. Thank you for your contributions.