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-1 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: fastn-community.github.io/blog-template-1/blog-articles/sample-post

-- ds.page:

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

-- ds.posts:

-- ds.post-article:
post-data: $sample-post.meta1

-- ds.post-article:
post-data: $sample-post.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-article
Learn more: post-article