From b91ca3f8396386e7daa9609d0c9f90826dea8d9e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 23 Jul 2024 09:58:02 +0800 Subject: [PATCH] =?UTF-8?q?Docs:=20=E4=BF=AE=E6=94=B9=20lightgallery=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 10 ++++++---- .../getting-started/configuration/index.md | 5 +++-- .../getting-started/configuration/index.md | 5 +++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 5c1a328b..9c968665 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -666,10 +666,12 @@ disableThemeInject = false # whether to enable twemoji # 是否使用 twemoji twemoji = false - # whether to enable lightgallery - # FixIt 0.2.18 | CHANGED if set to "force", images in the content will be forced to shown as the gallery. - # 是否使用 lightgallery - # FixIt 0.2.18 | 更改 如果设为 "force",文章中的图片将强制按照画廊形式呈现 + # FixIt 0.2.18 | CHANGED whether to enable lightgallery + # set to true, images in the content will be shown as the gallery if the image has a title, e.g. ![alt](src "title") + # set to "force", images in the content will be forced to shown as the gallery regardless of the image has a title or not, e.g. ![alt](src) + # FixIt 0.2.18 | 更改 是否使用 lightgallery + # 设为 true,且图片设置标题时,文章中的图片将以画廊形式呈现,例如:![alt](src "title") + # 设为 "force",无论图片是否设置标题文章中的图片都将强制按照画廊形式呈现,例如:![alt](src) lightgallery = false # whether to enable the ruby extended syntax # 是否使用 ruby 扩展语法 diff --git a/content/en/documentation/getting-started/configuration/index.md b/content/en/documentation/getting-started/configuration/index.md index cd1b07b7..f255cade 100644 --- a/content/en/documentation/getting-started/configuration/index.md +++ b/content/en/documentation/getting-started/configuration/index.md @@ -1147,8 +1147,9 @@ mDevtools hiddenFromRelated = false # whether to enable twemoji twemoji = false - # whether to enable lightgallery - # {{< version 0.2.18 changed >}} if set to "force", images in the content will be forced to shown as the gallery. + # {{< version 0.2.18 changed >}} whether to enable lightgallery + # set to true, images in the content will be shown as the gallery if the image has a title, e.g. ![alt](src "title") + # set to "force", images in the content will be forced to shown as the gallery regardless of the image has a title or not, e.g. ![alt](src) lightgallery = false # whether to enable the ruby extended syntax ruby = true diff --git a/content/zh-cn/documentation/getting-started/configuration/index.md b/content/zh-cn/documentation/getting-started/configuration/index.md index 19e57f83..e2d4d1fb 100644 --- a/content/zh-cn/documentation/getting-started/configuration/index.md +++ b/content/zh-cn/documentation/getting-started/configuration/index.md @@ -1140,8 +1140,9 @@ mDevtools hiddenFromRelated = false # 是否使用 twemoji twemoji = false - # 是否使用 lightgallery - # {{< version 0.2.18 changed >}} 如果设为 "force",文章中的图片将强制按照画廊形式呈现 + # {{< version 0.2.18 changed >}} 是否使用 lightgallery + # 设为 true,图片设置标题时,文章中的图片将以画廊形式呈现,例如:![alt](src "title") + # 设为 "force",无论图片是否设置标题文章中的图片都将强制按照画廊形式呈现,例如:![alt](src) lightgallery = false # 是否使用 ruby 扩展语法 ruby = true