I\'m trying to set up a template for generating Twitter Cards in blogdown
. It put the following in layouts/partials/twitter-card.html
:
I recommend you to use an absolute URL in this case:
image: "/post/foo/figure-html/some_image.png"
Note you should remove the directory name static
(Why?).
Twitter cards do not support relative paths, and you have to use a fully-qualified HTTP(S) URL in the image tag. This is described in the troubleshooting post.