问题
每当我分享 URL https://decentr.net/在社交媒体上,它没有元描述。
但是,当我分享 url 时 https://decentr.net/blog/或元描述确实出现的任何其他页面。
这是电报的截图:
异常
在 whatsapp 上它确实出现了元描述
这是whatsapp的截图
代码
Index.html(主页)的封面
---
layout: page
title: Earn by surfing the net
permalink: /
---
来自 <head>
的元描述
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Decentr provides a web browser experience that gives surfing the internet a payable value for every user">
<meta name="viewport" content="width=device-width, initial-scale=1">
SEO Jekyll 插件
<!-- Begin Jekyll SEO tag v2.5.0 -->
<title>Earn by surfing the net</title>
<meta name="generator" content="Jekyll v3.8.5" />
<meta property="og:title" content="Earn by surfing the net" />
<meta property="og:locale" content="en_US" />
<link rel="canonical" href="http://decentr.net//" />
<meta property="og:url" content="http://decentr.net//" />
<meta property="og:site_name" content="Earn by surfing the net" />
<script type="application/ld+json"> {"publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"http://decentr.net//assets/logo.png"}},"@type":"WebSite","url":"http://decentr.net//","headline":"Earn by surfing the net","name":"Earn by surfing the net","@context":"http://schema.org"}</script>
<!-- End Jekyll SEO tag -->
来自 _config.yml 的元描述
# Site settings
title: Earn by surfing the net
subtitle: "Decentr provides a web browser experience that gives surfing the internet a payable value for every user"
url: "http://decentr.net/"
Github repo :
最佳答案
这实际上不是关于 Jekyll 的问题。一旦 HTML 生成,Jekyll 的工作就结束了。如果您已经确认元描述在生成的 HTML 中,那么这并不是关于 Jekyll 的问题。
相反,这是关于各种社交媒体网站的预览生成器的问题。是否选择使用元描述取决于他们,我们对此无能为力。
有多种工具可以帮助您了解社交媒体预览爬虫如何理解您的网站:
Google 上还有很多其他工具,我建议您搜索一下。
我的猜测是 WhatsApp 有您网站的缓存版本,并且元描述没有更新。同样,我建议您搜索一种工具,让您可以触发对您网站的重新抓取。
关于seo - 为什么我分享 URL 时没有出现主页的元描述?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57275935/