Blog
Deprecation Notice
Vue-based themes will soon be deprecated. Please switch to React-based themes, as all future updates and support will focus exclusively on React.
The Blog
template renders the blog page, which lists all articles within a blog.
Website URL: https://www.uniket.store/blog
Argument to be passed
Context | Type | Description |
---|---|---|
application | string | Identifier for the application to which the blog belongs |
author | object | An object containing the name and ID of the author |
content | object | An array containing the content of the blog post in HTML format |
date_meta | object | Contains metadata about the creation and modification dates of the blog |
feature_image | object | Holds information about the featured image of the blog and has a secure_url |
_id | number | The unique identifier for the blog post |
publish_date | string | The date and time when the blog post was published |
published | boolean | A boolean indicating if the blog post is published |
seo | object | Contains SEO-related metadata for the blog post |
slug | string | Unique name of the blog |
tags | array | An array of tags associated with the blog post |
title | string | The title of the blog post |
_schedule | object | Contains scheduling information for the blog post |
context.blogs
This will be the object that returns the title of the blog.
Example
The below example will render the title of a blog:
<div className="title">
<h1>{{ context.blogs.title }}</h1>
</div>
<div className="date">
<h2>{{ getDate(context.blogs.publish_date) }}</h2>
</div>