如何在blogdown中创建的帖子中添加Twitter卡图像

如何在blogdown中创建的帖子中添加Twitter卡图像,twitter,r-markdown,hugo,blogdown,Twitter,R Markdown,Hugo,Blogdown,我从.Rmd文件在blogdown中创建了一篇文章。文件头包括: --- title: Social assistance and unemployment duration in Alberta author: Blake Shaffer date: '2018-11-30' slug: caseload-duration categories: [] tags: [] twitterImg: post/2018-11-29-caseload-duration-files/figure-htm

我从.Rmd文件在blogdown中创建了一篇文章。文件头包括:

---
title: Social assistance and unemployment duration in Alberta
author: Blake Shaffer
date: '2018-11-30'
slug: caseload-duration
categories: []
tags: []
twitterImg: post/2018-11-29-caseload-duration-files/figure-html/unnamed-chunk-5-1.png
header:
  caption: ''
  image: '/caseload-duration-banner.png'
---
但是,当我在推特上发布帖子链接时,图像不会出现:

我通过RStudio使用blogdown和hugo/gcashen学术主题


我有什么遗漏吗?

我通过Twitter卡验证程序运行了你的帖子-

它似乎工作-图像显示。通过查看源代码,我注意到这一行可能存在一个问题:


您应该确保图像是使用
https
引用的,而不仅仅是
http

您可以向我们展示生成的HTML吗?这将帮助我们找出问题所在。