Skip to content

Commit 4635026

Browse files
committed
添加 Algolia Crawler 域名验证
1 parent 5a5cf6d commit 4635026

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ baseurl: ""
77
# 作者信息
88
author:
99
name: Kaermaxc
10-
email: kaermaxc@example.com # 建议填写真实邮箱
10+
email: Kaermaxc@gmail.com # 建议填写真实邮箱
1111
url: https://magic-alt.github.io
1212

1313
timezone: Asia/Shanghai
@@ -41,9 +41,9 @@ plugins:
4141

4242
# Algolia 搜索配置(需要注册 Algolia 账号)
4343
algolia:
44-
application_id: "YOUR_APP_ID" # 替换为你的 Algolia Application ID
45-
index_name: "YOUR_INDEX_NAME" # 替换为你的索引名称
46-
search_only_api_key: "YOUR_SEARCH_KEY" # 替换为你的 Search-Only API Key
44+
application_id: "RT6C3M3J3Y" # Algolia Application ID
45+
index_name: "kaermaxc_blog" # 索引名称
46+
search_only_api_key: "6c8c5e520af94e8c02707b79a7e2d610" # Search-Only API Key
4747

4848
# Talkyard 评论系统配置
4949
talkyard:

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="algolia-site-verification" content="54CEFA20B860E64D" />
78

89
{% seo %}
910

algolia-verification.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="algolia-site-verification" content="54CEFA20B860E64D" />
5+
<title>Algolia Domain Verification</title>
6+
</head>
7+
<body>
8+
<p>Algolia domain verification page for magic-alt.github.io</p>
9+
</body>
10+
</html>

robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ Sitemap: https://magic-alt.github.io/sitemap.xml
66

77
# 禁止抓取的目录(可选)
88
Disallow: /assets/
9+
10+
Algolia-Crawler-Verif: 54CEFA20B860E64D

0 commit comments

Comments
 (0)