Moon icon indicating copy to clipboard operation
Moon copied to clipboard

Link recent articles at the bottom of each article

Open awnumar opened this issue 8 years ago • 4 comments

It'd be really cool if, say, the three or four most recent articles were linked to at the bottom of each post, kinda prompting the visitor to read them. Not sure how to make it look good and fit with the theme etc but you're the designer so you probably know that better than I do.

awnumar avatar Sep 14 '16 10:09 awnumar

Recent articles or similar articles? What do you want? Tell me and I will do it. :smile:

TaylanTatli avatar Dec 22 '16 17:12 TaylanTatli

You're enthusiastic lol.

Let's think about it. How would similar articles work? Would it be with the most similar keywords? What if a similar can't be found.

I think there should always be like a fixed amount of articles linked at the bottom. Maybe try and find very similar articles but if it fails then falls back onto the recent ones. If it only finds two similar articles then it should put the third as the most recent one. Also, we have to consider if there aren't that many posts. If there are only two articles on the entire site then you obv can't link to three.

awnumar avatar Dec 22 '16 17:12 awnumar

There is a variable site.related_posts for jekyll here: https://jekyllrb.com/docs/variables/#site-variables

TaylanTatli avatar Dec 23 '16 18:12 TaylanTatli

On github that'll be the most recent posts. Fair enough.

On Fri, 23 Dec 2016, 18:53 Taylan Tatlı, [email protected] wrote:

There is a variable site.related_posts for jekyll here: https://jekyllrb.com/docs/variables/#site-variables

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TaylanTatli/Moon/issues/64#issuecomment-269031460, or mute the thread https://github.com/notifications/unsubscribe-auth/AIhzn2PFBRaCDDgtCRyWDdXa-J3ttBQbks5rLBiqgaJpZM4J8oX6 .

awnumar avatar Dec 23 '16 18:12 awnumar