使用带有Github页面的Jekyll,当我在Twitter上分享帖子时,Twitter卡片中没有显示图像。
我使用 Jekyll-seo 标签,但是在 Front Matter 中添加图像标签时它不起作用,当我转到相应的 URL 时,我得到的是 404 而不是帖子。
我试过什么:
---
layout: post
title: "lorem ispum - Week 22 of 2018"
subtitle: "An inside look at ...."
date: 2018-06-04 17:00:00
authors: [ John Doe ]
icon: icon-calendar
tags:
- core-weekly
image: /assets/images/2017/04/...
---
发现问题。
image
标签不应位于前言的最后一个位置。
当我把它放在中间时,它可以工作,我会在Twitter卡上得到图像。
见下文:
---
layout: post
title: "lorem ispum - Week 22 of 2018"
subtitle: "An inside look at ...."
date: 2018-06-04 17:00:00
authors: [ John Doe ]
image: /assets/images/2017/04/...
icon: icon-calendar
tags:
- core-weekly
---