Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

update figure shortcode to support link, target, rel attributes #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phybros
Copy link

@phybros phybros commented Apr 9, 2023

The default figure shortcode in Hugo supports linking images using the link, target, and rel attributes on the image.

e.g.

{{< figure src="image.png" link="image.png" target="_blank" >}}

This change is just copied right from the default shortcode here: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant