education.rstudio.com
education.rstudio.com copied to clipboard
Alt text for images in blog posts
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.
Agreed! Happy to merge in PRs to add them to past posts.
Ok I'll do this in the next couple weeks! I'm thinking a single PR to add alt text to all post posts.
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.