From 7772313a53c41d1c70a1b9ad1a39d3680b141e13 Mon Sep 17 00:00:00 2001 From: longlin li Date: Tue, 21 Nov 2023 14:50:29 -0600 Subject: [PATCH] docs: correct editURL config instruction (#215) * docs: fix the documentation error about editURL * docs: fix the documentation error about editURL * Update configuration.md * Update configuration.zh-cn.md --------- Co-authored-by: Xin --- exampleSite/content/docs/guide/configuration.md | 5 ++--- exampleSite/content/docs/guide/configuration.zh-cn.md | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/docs/guide/configuration.md b/exampleSite/content/docs/guide/configuration.md index f4ddd67d..49e19ab5 100644 --- a/exampleSite/content/docs/guide/configuration.md +++ b/exampleSite/content/docs/guide/configuration.md @@ -143,13 +143,12 @@ params: ``` The edit links will be automatically generated for each page based on the provided url as root directory. -If you want to set edit link for a specific page, you can set the `params.editURL` parameter in the front matter of the page: +If you want to set edit link for a specific page, you can set the `editURL` parameter in the front matter of the page: ```yaml {filename="content/docs/guide/configuration.md"} --- title: Configuration -params: - editURL: "https://example.com/edit/this/page" +editURL: "https://example.com/edit/this/page" --- ``` diff --git a/exampleSite/content/docs/guide/configuration.zh-cn.md b/exampleSite/content/docs/guide/configuration.zh-cn.md index 383d9bed..6b0c58ef 100644 --- a/exampleSite/content/docs/guide/configuration.zh-cn.md +++ b/exampleSite/content/docs/guide/configuration.zh-cn.md @@ -114,12 +114,11 @@ params: ``` 将为每个页面自动生成编辑链接。 -如需为特定页面设置编辑链接,可以在页面的 `front matter` 中设置 `params.editURL`: +如需为特定页面设置编辑链接,可以在页面的 `front matter` 中设置 `editURL`: ```yaml {filename="content/docs/guide/configuration.md"} --- title: Configuration -params: - editURL: "https://example.com/edit/this/page" +editURL: "https://example.com/edit/this/page" --- ```