Skip to main content

Blog

You are reading an outdated document

Get the latest developer guides on Fynd Partners Help

The blog template renders the blog page, which lists all articles within a blog.

QG21


Argument to be passed

blogTypeDescription
slugstringA short, human-readable, URL-friendly identifier of a blog.
created_atstring
updated_atstring
feature_imageobjectsit has three values aspect_ratio,id,secure_url
titlestringtitle of the blog

context.blog

This will be the object that Returns the title of the blog.

Example

The below example will render a title of the blog.

<div class="title">
<h1>{{ context.blog.title }}</h1>
</div>
<div class="day">
<h2>{{ getDate(context.blog.created_at) }}</h2>
</div>
<div class="month">
<h2>{{ getMonth(context.blog.created_at) }}</h2>
</div>