Blog Details
Description
The Blog template renders the blog page, listing all articles within the blog. Selecting an article navigates to a detailed page, showcasing the full content of the chosen blog post.
Arguments
Context | Type | Description |
---|---|---|
application | string | Identifier for the application to which the blog belongs |
author | object | An object containing the author's name and ID. |
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 blog's feature image. It has 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.blog_details
This will be the object that returns the blog details.
Example
<div className="title">
<h1>{{ context.blog_details.title }}</h1>
</div>
<div className="day">
<h2>{{ getDate(context.blog_details.publish_date) }}</h2>
</div>
<div className="month">
<h2>{{ getMonth(context.blog_details.author.name) }}</h2>
</div>
```