I've been trying to add a twitter card to some plain rmarkdown documents that get converted to html files.
On the latest rmarkdow I tried for instance:
---- title: "My super website" twitter: creator:"@me" card:"summary" twitterImg:"path/to/my/image.png" template: opengraph: image: src: path/to/my/image.png alt: "My super website" ----
But this didn't work, am I missing something?
I think that this is solved for blogdown via the configuration files (twitterImg: "myimage.png" and similar) as I found several blogs from some years ago mentioning it, but these solutions didn't work for plain rmarkdown websites.
There are also several solutions to add meta tags on files:
headR and metathis.
Perhaps it would be useful if this could be handled at the rmarkdown level.