KO
베타 번역

@core / kit-blog

1.0.1 ▾
인증됨MIT
GitHub

Next.js 블로그 키트: 작성자·카테고리·태그·시리즈 글, 피드, 검토 댓글, 뉴스레터

코드파일 32개컨텍스트약 883토큰검사 통과

.genpmignore 적용 후 주입될 정확한 트리입니다. 고정 대상:

src/app/(blog)/_templates/genpm.md읽기 전용 · fa952a4
<!-- Generado por catalog/scripts/kit-snippets.mjs desde el proyecto de ejemplo: no editar a mano. -->
# @core/kit-blog: 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 { withSendAsCampaign } from '@/app/(blog)/_lib/campaign'; // kit-blog
import { pendingCommentsWidget } from '@/app/(blog)/_lib/widgets'; // kit-blog
import { blogAdminResources } from '@/lib/blog'; // kit-blog
import { commentsAdminResource } from '@/lib/comments'; // kit-blog kit-store
import { newsletterAdminResources } from '@/lib/newsletter'; // kit-blog
```

In top level (after the imports):

```ts
const [postsResource, ...blogTaxonomies] = blogAdminResources(); // kit-blog
```

In `widgets` (inside its list):

```ts
pendingCommentsWidget, // kit-blog
```

In `admin` → `resources` array:

```ts
withSendAsCampaign(postsResource!), // kit-blog
...blogTaxonomies, // kit-blog
commentsAdminResource, // kit-blog kit-store
...newsletterAdminResources(), // kit-blog
```

## `src/genpm/blocks.ts`

In imports (top of the file):

```ts
import { latestPosts } from '@/app/(blog)/_blocks/latest-posts'; // kit-blog
```

In `blocks` (inside its list):

```ts
latestPosts, // kit-blog
```

## `src/genpm/content.ts`

In imports (top of the file):

```ts
import '@/lib/blog'; // kit-blog: posts, authors, categories, tags, series
```

## `src/genpm/search.ts`

In imports (top of the file):

```ts
import { blogSearchSource } from '@/lib/blog'; // kit-blog
```

In top level (after the imports):

```ts
registerSearchSource(blogSearchSource()); // kit-blog
```

## `src/genpm/seo.ts`

In imports (top of the file):

```ts
import { blogSitemapSource } from '@/lib/blog'; // kit-blog
```

In top level (after the imports):

```ts
registerSitemapSource(blogSitemapSource()); // kit-blog
```

@core/kit-blog 신고

패키지를 신고하려면 GitHub로 로그인하세요.