tbx-co / tbx-gtk

TBX - Good To Know site built on Franklin
Apache License 2.0
0 stars 0 forks source link

[ Block ] Post Feed (post-feed) #9

Open solomon71 opened 11 months ago

solomon71 commented 11 months ago

Create a block that consumes the query-index.json endpoint. https://main--tbx-gtk--solomon71.hlx.page/query-index.json

The idea is to render out the posts on the homepage based on this query-index. Can tap into the .plain.html of each post when iterating and modifying the DOM. i.e. - https://main--tbx-gtk--solomon71.hlx.page/posts/09-21-23-font-loading-strategy-for-reducing-cls-scores.plain.html

Need to determine size of pagination. Need to see best practices on how to invalidate the home page when a new post has been authored.

Adobe Blog ref: https://github.com/adobecom/milo/blob/main/libs/blocks/article-feed/article-feed.js

solomon71 commented 11 months ago

@kyle-tbx are you able to tackle this one?

kyle-tbx commented 11 months ago

Most of the way through it... much more involved than I expected at first glance (based on how adobe blogs is doing it).