Skip to content

Hugo docs: Give images a very smooth shadow, not a flashy border #6286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions doc/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,26 @@ themeVariant = [
themeVariantAuto = ["red", "zen-dark"]
alwaysopen = false
collapsibleMenu = true

[params.imageEffects]

#
# Enable a soft shadow around the images that make the images appear to
# stand out ever so slightly like paper on a desk, giving them a smooth look:
#
shadow = true

#
# The CSS-based photographer's lightbox makes the image border flash
# on mouse-over and darkens the rest of the page when clicking on images.
#
# It is better to disable it as it serves no proper function for the
# toolstack docs and causes a border around the image to appear/disappear
# in a flash when entering/leaving the image. Disabling it turns the sudden
# appearance and disappearance of the flashy border off.
#
# Initially, this was based on the Featherlight jQuery plugin, which would
# have enlarged the images, but the CSS-only solution appears inadequate
# for a proper lightbox as it does not zoom the image:
#
lightbox = false
Loading