Blog Config
The Blog Config
object provides a structure for configuring the blog section of your website. This configuration allows you to configure various features such as language settings, general blog information, breadcrumbs, comments, and article-specific settings.
Blog Config Structure
Below is a breakdown of the Blog Config
properties and their intended use:
Top-Level Properties
Property Name | Type | Description |
---|---|---|
langCode |
string |
The language code for the blog (e.g., "uk" for Ukrainian). |
defaultLang |
boolean |
Indicates if this is the default language for the blog. Set to true for the primary language. |
title |
string |
The title of the blog section. |
subtitle |
string |
A descriptive subtitle for the blog section. |
Breadcrumbs Configuration
The breadcrumbs
object defines the breadcrumb labels for navigation.
Property Name | Type | Description |
---|---|---|
blog |
string |
Label for the blog breadcrumb. |
authors |
string |
Label for the authors' breadcrumb. |
General Settings
The general_settings
object contains various configurable strings for common blog features.
Properties:
Property Name | Type | Description |
---|---|---|
search_input_placeholder |
string |
Placeholder text for the search input field. |
all_articles_button |
string |
Text for the "View All Articles" button. |
categories |
string |
Label for categories. |
read_more |
string |
Text for the "Read More" button. |
author |
string |
Label for an article's author. |
author_articles |
string |
Text for viewing all articles by an author. |
time_to_read |
string |
Label for estimated reading time, followed by "minutes." |
empty_posts |
object |
Configuration for messages when there are no posts: |
empty_posts.category |
string |
Message shown when a category has no posts. |
empty_posts.author |
string |
Message shown when an author has no posts. |
search_failed_before |
string |
Prefix for a failed search message. |
search_failed_after |
string |
Suffix for a failed search message. |
Comments Configuration
The comments
object configures comment functionality and UI.
Properties:
Property Name | Type | Description |
---|---|---|
title |
string |
Heading text for the comments section. |
subtitle |
string |
Subheading text for the comments section. |
form |
object |
Configuration for the comment submission form: |
form.name_placeholder |
string |
Placeholder text for the name input field. |
form.email_placeholder |
string |
Placeholder text for the email input field. |
form.message_placeholder |
string |
Placeholder text for the comment message field. |
form.save_checkbox |
string |
Label for the "Save my details" checkbox. |
form.publish_button |
string |
Text for the "Publish" button. |
form.thanks |
string |
Message displayed after a comment is successfully submitted. |
form.replay |
string |
Text for the reply button. |
aproved_comments_title |
string |
Title for approved comments. |
Article Configuration
The article
object manages settings for individual articles.
Properties:
Property Name | Type | Description |
---|---|---|
authors_articles |
string |
Label for articles by the same author. |
aside |
object |
Configuration for the article's aside content: |
aside.share |
object |
Configuration for the share section: |
aside.share.button |
string |
Text for the share button. |
aside.share.title |
string |
Title for the sharing section. |
aside.share.soc_links_title |
string |
Label for sharing via social links. |
aside.share.copy_link_title |
string |
Label for copying a link. |
aside.share.success_copy |
string |
Message when the link is successfully copied. |
aside.share.fail_copy |
string |
Message when link copying fails. |
aside.rating_title |
string |
Title for the article rating section. |
aside.content_title |
string |
Title for the table of contents. |
aside.recent_articles_title |
string |
Title for the recent articles section. |
export const blog_config = {
langCode: "string",
defaultLang: boolean,
title: "string",
subtitle: "string",
breadcrumbs: {
blog: "string",
authors: "string"
},
general_settings: {
search_input_placeholder: "string",
all_articles_button: "string",
categories: "string",
read_more: "string",
author: "string",
author_articles: "string",
time_to_read: "string", // Units of time measurement
empty_posts: {
category: "string",
author: "string"
},
search_failed_before: "string",
search_failed_after: "string"
},
comments: {
title: "string",
subtitle: "string",
form: {
name_placeholder: "string",
email_placeholder: "string",
message_placeholder: "string",
save_checkbox: "string",
publish_button: "string",
thanks: "string",
replay: "string"
},
aproved_comments_title: "string"
},
article: {
authors_articles: "string",
aside: {
share: {
button: "string",
title: "string",
soc_links_title: "string",
copy_link_title: "string",
success_copy: "string",
fail_copy: "string"
},
rating_title: "string",
content_title: "string",
recent_articles_title: "string"
}
}
};