From d570c0a5710473d62b250d1af3449cb9547a0c7d Mon Sep 17 00:00:00 2001 From: Xiaoyue Lin <36526527+100gle@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:40:00 +0800 Subject: [PATCH] i18n(zh-cn): Update `guides/cms/ghost.mdx` (#8579) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * i18n(zh-cn): Update `guides/cms/ghost.mdx` * 更新 ghost.mdx Co-authored-by: liruifengv --------- Co-authored-by: liruifengv --- src/content/docs/zh-cn/guides/cms/ghost.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/content/docs/zh-cn/guides/cms/ghost.mdx b/src/content/docs/zh-cn/guides/cms/ghost.mdx index b2809ac773b69..c53b1e9b5470a 100644 --- a/src/content/docs/zh-cn/guides/cms/ghost.mdx +++ b/src/content/docs/zh-cn/guides/cms/ghost.mdx @@ -18,7 +18,7 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' ### 前置准备 在开始使用之前,你需要: -1. **一个 Astro 项目** - 如果没有 Astro 项目, 我们的 [安装指南](/zh-cn/install-and-setup/) 将在短时间内帮助你启动并运行。 +1. **一个 Astro 项目** - 如果没有 Astro 项目,我们的 [安装指南](/zh-cn/install-and-setup/) 将在短时间内帮助你启动并运行。 2. **一个 Ghost 站点** - 假定你已经配置了一个使用 Ghost 的站点。如果没有,可以根据 [Ghost 本地配置](https://ghost.org/docs/install/local/)在本地环境配置一个。 @@ -58,22 +58,25 @@ interface ImportMetaEnv { ### 安装依赖项 -选择你喜欢的包管理器运行以下命令安装 Ghost 官方的内容 API 容器 [`@tryghost/content-api`](https://www.npmjs.com/package/@tryghost/content-api) 连接 Ghost: +选择你喜欢的包管理器运行以下命令安装 Ghost 官方的内容 API 容器 [`@tryghost/content-api`](https://www.npmjs.com/package/@tryghost/content-api) 连接 Ghost,如果你使用 TypeScript,还可以选择包含类型定义的包: ```shell npm install @tryghost/content-api + npm install --save @types/tryghost__content-api ``` ```shell pnpm add @tryghost/content-api + pnpm add --save-dev @types/tryghost__content-api ``` ```shell yarn add @tryghost/content-api + yarn add --dev @types/tryghost__content-api ``` @@ -275,7 +278,7 @@ const { post } = Astro.props; ``` :::note[注意] -`` 是一个内置的 Astro 组件,它可以让你避免不必要的容器元素的影响。 这在从CMS(例如Ghost或[WordPress](/zh-cn/guides/cms/wordpress/))获取 HTML 时特别有用。 +`` 是一个内置的 Astro 组件,它可以让你避免不必要的容器元素的影响。这在从 CMS(例如 Ghost 或[WordPress](/zh-cn/guides/cms/wordpress/))获取 HTML 时特别有用。 ::: ### 发布你的网站