posts

Creating posts list page

It’s very common to display a list of top/latest posts as a blog home page. Our blog-template blog feature helps you to create your favorite blog posts list home page.

It’s very simple to create your top/latest featured posts using -- ds.posts which can be added inside -- ds.page.

Let’s learn how to create it.
Example of how to use -- ds.posts
-- import: meenukumari28.github.io/galaxia/blog-articles/sample-post-1

-- ds.page:

-- ds.featured-post:
post-data: $sample-post-1.meta

-- ds.posts:

-- ds.post-card:
post-data: $sample-post-1.meta1

-- ds.post-card:
post-data: $sample-post-1.meta2

-- end: ds.posts

-- end: ds.page
post-list.ftd
Lang:
ftd

Let’s understand above code snippet:

Importing blog posts meta with import
-- ds.posts:
Learn more: posts
-- ds.featured-post:
Learn more: featured-post
-- ds.post-card
Learn more: post-card
I’m surprised you had the courage to take the responsibility yourself.
Copyright ©2022. Fastn Inc.