Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/docs/zh-cn/guides/cms/builderio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stub: false
i18nReady: true
---
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
import ReadMore from '~/components/ReadMore.astro';
import { FileTree } from '@astrojs/starlight/components';
import { Steps } from '@astrojs/starlight/components';

Expand Down Expand Up @@ -57,6 +58,7 @@ interface ImportMetaEnv {
- package.json
</FileTree>

<ReadMore>了解更多关于 Astro 中的 [环境变量](/zh-cn/guides/environment-variables/) 和 `.env` 文件的内容。</ReadMore>

## 使用 Astro 和 Builder 创建博客

Expand Down
3 changes: 3 additions & 0 deletions src/content/docs/zh-cn/guides/cms/datocms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ i18nReady: true
---
import { Steps } from '@astrojs/starlight/components';
import { FileTree } from '@astrojs/starlight/components';
import ReadMore from '~/components/ReadMore.astro';

[DatoCMS](https://datocms.com/) 是一个基于 Web 的无头 CMS,用于管理你站点和应用程序的数字内容。

Expand Down Expand Up @@ -51,6 +52,8 @@ interface ImportMetaEnv {
- package.json
</FileTree>

<ReadMore>了解更多关于 Astro 中的 [环境变量](/zh-cn/guides/environment-variables/) 和 `.env` 文件的内容。</ReadMore>

## 在 DatoCMS 中创建模型

在你的 DatoCMS 项目管理面板中,导航到“设置”>“模型”,创建一个名为“Home”的新模型,并选择“Single Instance”开关。这将为你的项目创建一个主页。在该模型中,添加一个新的文本字段用于页面标题。
Expand Down
3 changes: 3 additions & 0 deletions src/content/docs/zh-cn/guides/cms/strapi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ i18nReady: true
import { Steps } from '@astrojs/starlight/components';
import { FileTree } from '@astrojs/starlight/components';
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
import ReadMore from '~/components/ReadMore.astro';

[Strapi](https://strapi.io/) 是一个开源的、可定制化的无头 CMS。

Expand Down Expand Up @@ -52,6 +53,8 @@ interface ImportMetaEnv {
- package.json
</FileTree>

<ReadMore>了解更多关于 Astro 中的 [环境变量](/zh-cn/guides/environment-variables/) 和 `.env` 文件的内容。</ReadMore>

### 创建 API 包装器

在 `src/lib/strapi.ts` 中创建一个新文件,并添加以下包装函数来与 Strapi API 进行交互:
Expand Down