ZH
测试版翻译

@core / kit-landing

1.0.1 ▾
已验证MIT
GitHub

Next.js 落地页套件:区块页面、线索表单、Cookie 横幅和需同意的转化像素

代码14 个文件上下文约 910 个 token扫描通过

应用 .genpmignore 后将被注入的确切目录树。固定于

src/app/(landing)/_templates/genpm.md只读 · f730e59
<!-- Generado por catalog/scripts/kit-snippets.mjs desde el proyecto de ejemplo: no editar a mano. -->
# @core/kit-landing: lines for `src/genpm/*.ts`

Add each line below to the project's registration files (created by @core/kit-cms from its `_templates/genpm`).
Skip a line that is already there (another kit may have added it), keep the trailing `// kit-…` comment so later
kits and removals can find it, and keep the project's own lines.

## `src/genpm/admin.ts`

In imports (top of the file):

```ts
import { landingPath } from '@/app/(landing)/_lib/landings'; // kit-landing
import { leadsByLandingWidget } from '@/app/(landing)/_lib/widgets'; // kit-landing
import { experimentsAdminResource } from '@/lib/experiments'; // kit-landing: A/B tests (optional)
```

In `widgets` (inside its list):

```ts
leadsByLandingWidget, // kit-landing
```

In `admin` → `resources` array:

```ts
{ ...contentAdminResource('landings', { path: landingPath }), group: 'Marketing' }, // kit-landing
experimentsAdminResource, // kit-landing: A/B tests (optional)
```

## `src/genpm/blocks.ts`

In imports (top of the file):

```ts
import { countdown } from '@/app/(landing)/_blocks/countdown'; // kit-landing
```

In `blocks` (inside its list):

```ts
countdown, // kit-landing
```

## `src/genpm/content.ts`

In imports (top of the file):

```ts
import '@/app/(landing)/_lib/landings'; // kit-landing: colección landings
import '@/app/(landing)/_lib/conversion'; // kit-landing: evento lead en servidor (job)
```

## `src/genpm/seo.ts`

In imports (top of the file):

```ts
import { landingPath } from '@/app/(landing)/_lib/landings'; // kit-landing
```

In top level (after the imports):

```ts
registerSitemapSource(contentSitemapSource('landings', landingPath)); // kit-landing
```

举报 @core/kit-landing

使用 GitHub 登录后才能举报包。