Skip to main content

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

ContextTypeDescription
applicationstringIdentifier for the application to which the blog belongs
authorobjectAn object containing the author's name and ID.
contentobjectAn array containing the content of the blog post in HTML format.
date_metaobjectContains metadata about the creation and modification dates of the blog.
feature_imageobjectHolds information about the blog's feature image. It has secure_url
_idnumberThe unique identifier for the blog post.
publish_datestringThe date and time when the blog post was published.
publishedbooleanA boolean indicating if the blog post is published.
seoobjectContains SEO-related metadata for the blog post.
slugstringunique name of the blog
tagsarrayAn array of tags associated with the blog post
titlestringThe title of the blog post.
_scheduleobjectContains 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>
```

Was this section helpful?