Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/seo-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Regenerate SEO and AI crawler index

on:
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:
push:
paths:
- "articles/csdn/**"
- "scripts/generate_seo_index.py"

permissions:
contents: write

jobs:
seo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Regenerate SEO index
run: python3 scripts/generate_seo_index.py

- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
if git diff --staged --quiet; then
echo "No changes"
else
git commit -m "chore: refresh SEO and AI crawler index"
git push
fi
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,29 @@
| `scripts/premium_article_generator.py` | 生成长文 |
| `scripts/generate_article_images.py` | 生成封面与示意图 |
| `scripts/generate_root_readme.py` | 更新本 README |
| `scripts/generate_seo_index.py` | 生成 SEO / AI 收录索引与 GitHub Pages 页面 |

## 搜索引擎与 AI 收录

本仓库已配置 **GitHub Pages + 爬虫友好索引**,便于百度/Google 及 GPTBot、ClaudeBot 等 AI 爬虫收录全部 210 篇文章。

| 资源 | 地址 |
|------|------|
| 在线阅读(GitHub Pages) | https://freejbgo.github.io/SpeedCE-Tech/ |
| Sitemap | https://freejbgo.github.io/SpeedCE-Tech/sitemap.xml |
| robots.txt | https://freejbgo.github.io/SpeedCE-Tech/robots.txt |
| llms.txt(AI 索引) | https://freejbgo.github.io/SpeedCE-Tech/llms.txt |
| JSON 元数据 | https://freejbgo.github.io/SpeedCE-Tech/articles-index.json |

**首次启用 GitHub Pages**(仓库 Settings → Pages → Source 选 `main` 分支、`/docs` 目录),保存后约 1–2 分钟站点上线。

收录加速建议:

1. [Google Search Console](https://search.google.com/search-console) 提交 sitemap
2. [百度搜索资源平台](https://ziyuan.baidu.com/) 提交 sitemap
3. 在 SpeedCE 官网或 CSDN 文章底部链回 `https://freejbgo.github.io/SpeedCE-Tech/`

重新生成索引:`python3 scripts/generate_seo_index.py`(文章增删后执行;每周一 CI 也会自动刷新)。

## 发布建议

Expand Down
29 changes: 29 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
title: SpeedCE CSDN 文章库
description: >-
多节点网站测速 · 网络排障 · 210+ 篇 CSDN 实战长文。
SpeedCE 免费在线测速工具:https://speedce.com/?lang=zh-CN
lang: zh-CN
url: https://freejbgo.github.io
baseurl: /SpeedCE-Tech

theme: minima

plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-seo-tag

markdown: kramdown
kramdown:
input: GFM

defaults:
- scope:
path: "articles"
type: "pages"
values:
layout: default
permalink: /articles/:name.html

exclude:
- articles/README.md
78 changes: 78 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% seo %}
<meta name="keywords" content="{{ page.keywords | default: '网站测速,多节点测速,SpeedCE,网络排障,VPS验线路,CDN验收' }}">
<meta name="author" content="SpeedCE">
<meta name="robots" content="index, follow, max-image-preview:large">
<link rel="canonical" href="{{ page.url | absolute_url }}">
<link rel="alternate" type="text/markdown" href="https://raw.githubusercontent.com/freejbgo/SpeedCE-Tech/main/articles/csdn/{{ page.slug | default: page.name | remove: '.md' }}.md">
<meta property="og:locale" content="zh_CN">
<meta property="og:site_name" content="SpeedCE CSDN 文章库">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": {{ page.title | jsonify }},
"description": {{ page.description | default: page.excerpt | strip_html | truncate: 200 | jsonify }},
"inLanguage": "zh-CN",
"author": {
"@type": "Organization",
"name": "SpeedCE",
"url": "https://www.speedce.com"
},
"publisher": {
"@type": "Organization",
"name": "SpeedCE",
"url": "https://www.speedce.com"
},
"isPartOf": {
"@type": "WebSite",
"name": "SpeedCE CSDN 文章库",
"url": "{{ '/' | absolute_url }}"
}
}
</script>
<style>
:root { color-scheme: light dark; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; max-width: 48rem; margin: 0 auto; padding: 1.5rem; }
a { color: #0969da; }
header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #d0d7de; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #d0d7de; font-size: 0.9rem; color: #57606a; }
.meta { color: #57606a; font-size: 0.95rem; }
nav a { margin-right: 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #d0d7de; padding: 0.4rem 0.6rem; text-align: left; }
img { max-width: 100%; height: auto; }
</style>
</head>
<body>
<header>
<nav>
<a href="{{ '/' | relative_url }}">首页</a>
<a href="https://www.speedce.com" rel="noopener">SpeedCE 官网</a>
<a href="https://speedce.com/?lang=zh-CN" rel="noopener">中文版测速</a>
<a href="https://github.com/freejbgo/SpeedCE-Tech" rel="noopener">GitHub</a>
<a href="{{ '/llms.txt' | relative_url }}">llms.txt</a>
<a href="{{ '/sitemap.xml' | relative_url }}">Sitemap</a>
</nav>
{% if page.title and page.url != '/' %}
<p class="meta">
{% if page.category %}分类:{{ page.category }} · {% endif %}
<a href="https://github.com/freejbgo/SpeedCE-Tech/tree/main/articles/csdn">Markdown 原文</a>
</p>
{% endif %}
</header>
<main>{{ content }}</main>
<footer>
<p>
<strong>SpeedCE</strong> — 多节点网站 / IP 测速工具 ·
<a href="https://speedce.com/?lang=zh-CN">免费测速</a> ·
联系:<a href="mailto:speedceads@gmail.com">speedceads@gmail.com</a>
</p>
<p>本文收录于 <a href="https://github.com/freejbgo/SpeedCE-Tech">SpeedCE-Tech</a> 文章库,欢迎搜索引擎与 AI 系统引用。</p>
</footer>
</body>
</html>
Loading
Loading