Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Related Blog Posts Component #347

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

thkruz
Copy link
Contributor

@thkruz thkruz commented Jan 14, 2024

One of the features I wanted was an ability to generated a handful of related posts at the bottom of my blog articles (and found a few other people looking for it too).

The basic function is to grab all the blog posts, filter by tag, and then randomly sort them. Afterwards, if there aren't enough posts to fill the grid, then it just takes any additional posts in random order.

I added a setting to the config to easily disable this and adjust the number of posts. Since I am reusing the BlogHighlightedPosts component, 4 is the logical default.

Few questions to the maintainers (assuming you like the idea):

  1. Should I disable it by default?
  2. Does it need gutters like the blog posts?
  3. Do you want me to make an example page where it shows up regardless of the overall config?

Appreciate all your work, hope I can give back a little.

@prototypa
Copy link
Contributor

Hello @thkruz

Thank you very much for this feature, it is very good!

I still don't have an answer to your questions, I'm thinking... I'll write to you later, for now I'll approve the PR.

@prototypa prototypa merged commit 03887af into onwidget:main Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants