Zum Inhalt springen

index

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

function studioCMSBlogPlugin(options?: {
blog: {
enableRSS: boolean;
route: string;
title: string;
};
favicon: string;
htmlDefaultHead: {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "link"
| "base"
| "meta"
| "noscript"
| "script"
| "style"
| "template";
}[];
htmlDefaultLanguage: string;
injectRoutes: boolean;
sitemap: boolean;
}): StudioCMSPlugin

Defined in: studiocms/packages/@studiocms/blog/src/index.ts:39^

Creates and configures the StudioCMS Blog plugin.

Optional configuration options for the blog plugin.

{ enableRSS: boolean; route: string; title: string; } = ...

The configuration for the blog

boolean = ...

Enable RSS feed

string = ...

The route for the blog

Default

'/blog'

Example

'/news'

string = ...

The title of the blog

string = ...

Favicon Configuration - The default favicon configuration for the Frontend

{ attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "link" | "base" | "meta" | "noscript" | "script" | "style" | "template"; }[] = ...

HTML Default Header - The default head configuration for the Frontend

string = ...

HTML Default Language - The default language for the HTML tag

Default

'en'

boolean = ...

Inject routes

Default

true

boolean = ...

Enable sitemap generation

Default

true

StudioCMSPlugin

The configured StudioCMS plugin.

This function sets up the StudioCMS Blog plugin with the provided options or default values. It configures the plugin’s identifier, name, minimum version, frontend navigation links, page types, sitemap settings, and integration hooks.

const blogPlugin = studioCMSBlogPlugin({
blog: {
title: 'My Blog',
enableRSS: true,
route: '/my-blog'
},
sitemap: true,
injectRoutes: true
});

Renames and re-exports studioCMSBlogPlugin