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.
Argument to be passed
blog | Type | Description | |
---|---|---|---|
slug | string | A short, human-readable, URL-friendly identifier of a blog. | |
created_at | string | ||
updated_at | string | ||
feature_image | objects | it has three values aspect_ratio,id,secure_url | |
title | string | title 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>