Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Recent activity section(s) on homepage #400

Open
brianclemens opened this issue Jun 2, 2022 · 3 comments
Open

Recent activity section(s) on homepage #400

brianclemens opened this issue Jun 2, 2022 · 3 comments
Labels
priority: low This issue or pull request is of low priority tag: content Additions to (or modifications of) content in the repository tag: help wanted Extra attention is needed type: enhancement New feature or request

Comments

@brianclemens
Copy link
Member

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.

@FoggyMtnDrifter
Copy link
Member

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.

@FoggyMtnDrifter FoggyMtnDrifter added priority: low This issue or pull request is of low priority tag: content Additions to (or modifications of) content in the repository tag: help wanted Extra attention is needed type: enhancement New feature or request labels Jun 2, 2022
@hbjydev
Copy link
Contributor

hbjydev commented Jun 2, 2022

@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

@hbjydev
Copy link
Contributor

hbjydev commented Jun 2, 2022

https://docs.discourse.org/#tag/Posts/operation/listPosts <- source of Discourse API docs btw

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: low This issue or pull request is of low priority tag: content Additions to (or modifications of) content in the repository tag: help wanted Extra attention is needed type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants