Closed Evansdoor closed 6 years ago
You can use the figure shortcode of Hugo coupled with alt
{{< figure src="path_to_file" title="My title" alt="Alternative Text">}}
You can use the figure shortcode of Hugo coupled with
alt
{{< figure src="path_to_file" title="My title" alt="Alternative Text">}}
Thanks for the suggestion, @Bertbk!
The problem is, I'm trying to add alt tags to all the images in my site, and I can't get shortcodes like this to work for images like the portrait in the About section, or the image_preview or image in the Project section. I get the usual "bare keys cannot contain '{' " error message.
@Evansdoor any luck getting alt text on images to work in Academic theme? If so, could you share any tips?
My colleagues and I really want to use Academic for our sites, but lack of support for alt-text is holding me back. Thanks!
Hi @bxie No I'm afraid I had to give up on alt text. Sorry I didn't have better news.
It'd be wonderful if we could have a way to implement alt-tags on images (or a functional equivalent within the div tags - titles? - that's accessible to screen readers).