Skip to content

Commit

Permalink
Update configuration.zh-cn.md
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing committed Jun 2, 2024
1 parent bb66ca9 commit 399f421
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions exampleSite/content/docs/guide/configuration.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,6 @@ params:
- `heading` - 一级和二级标题
- `title` - 仅搜索标题

要从搜索索引中排除页面,更改 front matter 中的 `excludeSearch: true`:

```yaml {filename="content/docs/guide/configuration.md"}
---
title: Configuration
excludeSearch: true
---
```

要自定义检索分词,请在配置文件中设置`params.search.flexsearch.tokenize`

```hugo.yaml
Expand All @@ -247,6 +238,15 @@ params:

> 在默认的分词逻辑下,中文一句话就是一个“单词”
要从搜索索引中排除页面,更改 front matter 中的 `excludeSearch: true`:

```yaml {filename="content/docs/guide/configuration.md"}
---
title: Configuration
excludeSearch: true
---
```

### Google Analytics

要启用 [Google Analytics](https://marketingplatform.google.com/about/analytics/),设置 `services.googleAnalytics.ID`:
Expand Down

0 comments on commit 399f421

Please sign in to comment.