【问题标题】:How to share github pages to facebook? I tried sharing my blog but it didn't work如何将 github 页面分享到 facebook?我尝试分享我的博客,但没有成功
【发布时间】:2021-02-13 07:17:03
【问题描述】:
我刚刚创建了一个github page 并写了一个博客。我尝试将 Disqus 的分享选项分享到 Facebook,但它没有加载预览并且还显示以下内容。
即使我复制链接并直接粘贴它,它也不起作用。但是,如果我在 LinkedIn 中执行相同的操作(复制链接并粘贴),它的预览会很好地生成。可能是什么问题呢?我正在使用 Flexible-Jekyll 主题。你可以在这里找到flexible-jekyll theme 的链接,这里是我的github repo 的链接。
【问题讨论】:
标签:
jekyll
github-pages
jekyll-theme
【解决方案1】:
我认为问题是由source code of 'Car detection with YOLO'中的这行代码引起的:
<meta content="https://crazz-zaac.github.io/crazz-zaac.github.iohttps://crazz-zaac.github.io/car-detection-with-yolo/" property="og:url">
og:url 属性中的 URL 不正确,但它在 Twitter 中运行良好,因为您为 Twitter 提供了不同的 og:url 属性。
将其更改为正确的 URL,我希望它会起作用,
<meta content="https://crazz-zaac.github.io/car-detection-with-yolo/" property="og:url">