Open brianclemens opened 2 years ago
While I love the idea, I'm not sure it's going to work well with Gatsby, which at its core is a static site generator. I'll take a look this weekend and see what the limitations might be and, if achievable, the best way to go about it.
@ressonix I'm thinking we could just have a section that lazy loads with a Discourse API. Definitely possible with Twitter, obviously, but just something like:
const loading = useState(true);
const discourseReq = await fetch('https://forums.rockylinux.org/posts.json');
const discourse = await discourseReq.json();
return (
<h1>Recent Activity</h1>
{ loading ? <p>Loading...</p> : <p>Found {discourse['latest_posts'].length}.</p> }
);
There's no reason we'd care about it being included in SEO imo
https://docs.discourse.org/#tag/Posts/operation/listPosts <- source of Discourse API docs btw
In addition to the current recent announcement posts, we should display recent activity on homepage such as "recently popular Discourse threads", "recent Twitter posts", etc.