types
Type Aliases
Section titled “Type Aliases”HeadConfig
Section titled “HeadConfig”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^
Type Declaration
Section titled “Type Declaration”attrs: Record<string, string | boolean | undefined>;
content
Section titled “content”content: string;
tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template";
HeadUserConfig
Section titled “HeadUserConfig”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^
StudioCMSBlogOptions
Section titled “StudioCMSBlogOptions”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.
Type Declaration
Section titled “Type Declaration”blog: { enableRSS: boolean; route: string; title: string;};
The configuration for the blog
blog.enableRSS
Section titled “blog.enableRSS”enableRSS: boolean;
Enable RSS feed
blog.route
Section titled “blog.route”route: string;
The route for the blog
Default
Section titled “Default”'/blog'
Example
Section titled “Example”'/news'
blog.title
Section titled “blog.title”title: string;
The title of the blog
favicon
Section titled “favicon”favicon: string;
Favicon Configuration - The default favicon configuration for the Frontend
htmlDefaultHead
Section titled “htmlDefaultHead”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
Section titled “htmlDefaultLanguage”htmlDefaultLanguage: string;
HTML Default Language - The default language for the HTML tag
Default
Section titled “Default”'en'
injectRoutes
Section titled “injectRoutes”injectRoutes: boolean;
Inject routes
Default
Section titled “Default”true
sitemap
Section titled “sitemap”sitemap: boolean;
Enable sitemap generation
Default
Section titled “Default”true
Variables
Section titled “Variables”faviconTypeMap
Section titled “faviconTypeMap”const faviconTypeMap: { .gif: string; .ico: string; .jpeg: string; .jpg: string; .png: string; .svg: string;};
Defined in: studiocms/packages/@studiocms/blog/src/types.ts:8^
Type Declaration
Section titled “Type Declaration”.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';
FrontEndConfigSchema
Section titled “FrontEndConfigSchema”const FrontEndConfigSchema: ZodDefault<StudioCMSBlogOptions>;
Defined in: studiocms/packages/@studiocms/blog/src/types.ts:24^
Options for configuring the StudioCMS Blog.
Functions
Section titled “Functions”isFaviconExt()
Section titled “isFaviconExt()”function isFaviconExt(ext: string): ext is ".ico" | ".gif" | ".jpeg" | ".jpg" | ".png" | ".svg";
Defined in: studiocms/packages/@studiocms/blog/src/types.ts:17^
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ext is “.ico” | “.gif” | “.jpeg” | “.jpg” | “.png” | “.svg”