如何让你的网站被AI收录
头文件加入这些,。
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>页面标题 | 站点名称</title>
<meta name="description" content="页面简明摘要,清晰说明内容主旨">
<meta name="robots" content="index,follow">
<link rel="canonical" href="https://example.com/your-page-url">
<link rel="alternate" type="text/markdown" href="https://example.com/llms.txt">
<!-- OG -->
<meta property="og:title" content="页面标题">
<meta property="og:description" content="页面简明摘要">
<meta property="og:url" content="https://example.com/your-page-url">
<meta property="og:type" content="article">
<meta property="og:image" content="https://example.com/cover.jpg">
<!-- JSON-LD Article -->
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"Article",
"headline":"页面标题",
"description":"页面简明摘要",
"url":"https://example.com/your-page-url",
"datePublished":"2026-11-13"
}
</script>
</head>
如果只需要收录标题, llms.txt 内容如下
存放路径:网站根目录 /llms.txt,纯文本 UTF-8,Markdown 语法,只用一个 H1,链接写绝对完整 URL
# 你的博客名称
> 一句话描述站点是做什么的
## 文章
- [第一篇文章](https://example.com/post/1.html): 文章摘要
如果想收录全文, llms.txt 内容如下
# 你的博客名称 - Full Content
> 本文是llms.txt配套全文文件,包含精选文章正文,无导航、侧边栏噪音。
---
title: 文章标题1
url: https://example.com/post/1.html
datePublished: 2026-11-01
---
这里粘贴文章纯正文内容,去掉导航、广告、评论区、JS代码
文章正文……
---
title: 文章标题2
url: https://example.com/post/2.html
datePublished: 2026-11-05
---
文章正文……
全部回复 0