education.rstudio.com icon indicating copy to clipboard operation
education.rstudio.com copied to clipboard

Alt text for images in blog posts

Open mine-cetinkaya-rundel opened this issue 4 years ago • 3 comments

We should have alt text for images in blog posts and set fig_caption: false (or whatever the equivalent for that is for blogdown). I perused a couple of blog posts and didn't see them in use.

mine-cetinkaya-rundel avatar Jun 22 '20 09:06 mine-cetinkaya-rundel

Agreed! Happy to merge in PRs to add them to past posts.

apreshill avatar Jun 22 '20 13:06 apreshill

Ok I'll do this in the next couple weeks! I'm thinking a single PR to add alt text to all post posts.

mine-cetinkaya-rundel avatar Jun 24 '20 11:06 mine-cetinkaya-rundel

For figures created in R chunks, we can use the method described at https://ropensci.org/technotes/2020/04/23/rmd-learnings/. For embedded images just html alt text should do.

For the teaching tidyverse posts I added the knitr hook to the setup chunk of the Rmd.

@apreshill Is there a way to centrally include that, or is including the knitr hook definition in the setup chunk for each post the way to go?

Once we have a workflow I can also add instructions to the README.

mine-cetinkaya-rundel avatar Jul 19 '20 20:07 mine-cetinkaya-rundel