Skip to content

types

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

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:6^

attrs: Record<string, string | boolean | undefined>;
content: string;
tag:
| "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";

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

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:5^


type StudioCMSBlogOptions = {
blog: {
enableRSS: boolean;
route: string;
title: string;
};
favicon: string;
htmlDefaultHead: {
attrs: Record<string, string | boolean | undefined>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}[];
htmlDefaultLanguage: string;
injectRoutes: boolean;
sitemap: boolean;
};

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:94^

Options for configuring the StudioCMS Blog.

blog: {
enableRSS: boolean;
route: string;
title: string;
};

The configuration for the blog

enableRSS: boolean;

Enable RSS feed

route: string;

The route for the blog

'/blog'
'/news'
title: string;

The title of the blog

favicon: string;

Favicon Configuration - The default favicon configuration for the Frontend

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

HTML Default Header - The default head configuration for the Frontend

htmlDefaultLanguage: string;

HTML Default Language - The default language for the HTML tag

'en'

injectRoutes: boolean;

Inject routes

true

sitemap: boolean;

Enable sitemap generation

true

const faviconTypeMap: {
.gif: string;
.ico: string;
.jpeg: string;
.jpg: string;
.png: string;
.svg: string;
};

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:8^

.gif: string = 'image/gif';

.ico: string = 'image/x-icon';

.jpeg: string = 'image/jpeg';

.jpg: string = 'image/jpeg';

.png: string = 'image/png';

.svg: string = 'image/svg+xml';

const FrontEndConfigSchema: ZodDefault<StudioCMSBlogOptions>;

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:24^

Options for configuring the StudioCMS Blog.

function isFaviconExt(ext: string): ext is ".ico" | ".gif" | ".jpeg" | ".jpg" | ".png" | ".svg";

Defined in: studiocms/packages/@studiocms/blog/src/types.ts:17^

string

ext is “.ico” | “.gif” | “.jpeg” | “.jpg” | “.png” | “.svg”