From 24f159335c55a4d15ab2d59010402142e25adbcb Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Mon, 26 Jul 2021 09:44:12 -0700 Subject: [PATCH] doc: update _config.yml to add algolia search --- _config.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 2fe9217..71f627c 100644 --- a/_config.yml +++ b/_config.yml @@ -141,4 +141,21 @@ envelope_comment: path: #【可选】comments 的路径名称。默认为 comments,生成的页面为 comments/index.html front_matter: #【可选】comments页面的 front_matter 配置 title: 留言板 - comments: true \ No newline at end of file + comments: true + +# Algolia +algolia: + appId: "JCV3966QBS" + apiKey: "275765dbf8f0c4772ce75a61d956160a" + adminApiKey: "02d000b55e8ce81ebbe45c682101e157" + chunkSize: 5000 + indexName: "Leon的技术阁" + fields: + - content:strip:truncate,0,500 + - excerpt:strip + - gallery + - permalink + - photos + - slug + - tags + - title