图片的alt
所以最好还是把alt加上
一个可能大家会忽略掉的流量来源,搜索引擎的图片搜索。
尽量给自己的内容配上图片,如果是内容站,甚至就是内容本身的截图都行。
后台搞个图片生成代码,给每个内容生成一张配图,可以是A4大小的,然后网页里把配图加上,把img标签的alt属性写上,等待搜索引擎的抓取。
后面慢慢就有从图片搜索过来的流量了。
google搜索对有些词会直接返回图片。
图片的schema
{
"@context": "https://schema.org/",
"@type": "ImageObject",
"contentUrl": "https://example.com/photos/1x1/black-labrador-puppy.jpg",
"license": "https://creativecommons.org/licenses/by/4.0/",
"acquireLicensePage": "https://example.com/how-to-use-my-images",
"creditText": "Labrador PhotoLab",
"creator": {
"@type": "Person",
"name": "Brixton Brownstone"
},
"copyrightNotice": "Clara Kent"
}
contentUrl 图片地址
license属性指向的是一个标准的、可被机器识别的许可协议URL,比如 "https://creativecommons.org/licenses/by/4.0/"。
acquireLicensePage属性指向的是一个解释如何获取使用许可的人类可读页面,比如 "https://example.com/how-to-use-my-images"。
creditText: 指定了图像的创作者信息,在这里是 "Labrador PhotoLab"。 用于简单的文本性归属,通常直接展示在资源附近。
creator: 指定了图像的创作者,在这里是一个 "Person" 类型的对象,名字是 "Brixton Brownstone"。 用于引用一个完整的创作者实体,提供更多结构化的创作者信息
copyrightNotice: 指定了图像的版权所有者,在这里是 "Clara Kent"。
新闻文章的schema
type 类型有多种,Article是通用,BlogPosting是博客文章,NewsArticle是新闻
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "标题",
"image": [],
"datePublished": "时间",
"dateModified": "时间",
"author": [{
"@type": "Person",
"name": "作者名",
"url": "新闻的url"
}]
}
</script>
Person 人物
{
"@context": "https://schema.org",
"@type": "Person",
"name": "John Doe",
"image": "https://example.com/headshot.jpg",
"jobTitle": "Software Engineer",
"worksFor": {
"@type": "Organization",
"name": "Acme Inc"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Anytown",
"addressRegion": "CA",
"postalCode": "12345",
"addressCountry": "US"
},
"telephone": "+1-555-555-5555",
"email": "[email protected]",
"url": "https://example.com/john-doe",
"description": "John Doe is a talented software engineer with over 10 years of experience in the industry. He specializes in web development and has a passion for creating innovative, user-friendly applications."
}
LocalBusiness 示例
这样google会直接显示公司的详情
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "ABC Restaurant",
"image": "https://example.com/restaurant-image.jpg",
"@id": "http://example.com/restaurant",
"url": "http://example.com",
"telephone": "+1-555-555-5555",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Anytown",
"addressRegion": "CA",
"postalCode": "12345",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 40.730610,
"longitude": -73.935242
},
"openingHours": "Mo,Tu,We,Th,Fr,Sa 11:00-23:00",
"description": "ABC Restaurant is a family-owned Italian restaurant located in the heart of Anytown. We offer a wide variety of traditional Italian dishes made with fresh, high-quality ingredients."
}
Logo
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Acme Inc",
"logo": "https://example.com/images/logo.png"
}
HowTo
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "如何烹饪完美的牛排",
"description": "本教程将教您如何烹饪出完美多汁的牛排。我们将介绍选购牛排、准备、烹饪和切割的步骤。",
"step": [
{
"@type": "HowToStep",
"text": "选购优质的牛排,厚度约2.5厘米。"
},
{
"@type": "HowToStep",
"text": "将牛排取出冰箱30分钟以上,使其温度与室温相当。"
},
{
"@type": "HowToStep",
"text": "用盐和胡椒粉均匀调味。"
},
{
"@type": "HowToStep",
"text": "在烧得很热的煎锅中快速煎制牛排,每面约2-3分钟。"
},
{
"@type": "HowToStep",
"text": "将牛排放入预热至120摄氏度的烤箱中,继续烹饪至您喜欢的熟度。"
},
{
"@type": "HowToStep",
"text": "取出牛排后,盖上锡箔纸静置5-10分钟。最后切开即可享用。"
}
],
"tool": [
"煎锅",
"烤箱",
"锡箔纸"
]
}
FAQ 常见问题解答
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "什么是 Schema.org?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema.org 是一个常用的结构化数据标记协议,由主要搜索引擎共同维护。它可以帮助网站向搜索引擎提供更丰富的信息,从而获得更好的搜索结果展示。"
}
},
{
"@type": "Question",
"name": "为什么要使用 Schema.org?",
"acceptedAnswer": {
"@type": "Answer",
"text": "使用 Schema.org 可以帮助搜索引擎更好地理解和索引网站内容,从而提高网站在搜索结果中的排名和展示效果。同时也可以为用户提供更丰富的搜索体验。"
}
}
]
}