I’m working on a website where there is a list of news items, and each news item can be associated with a specific person. Each person has their own page, and I want all associated news items to appear on the respective pages.
I’ve got the basic functionality working, as far as displaying the correct news items, but they are not being sorted in the proper chronological order. Hoping someone can spot the issue!
Also, very likely this code is very ugly and I’m going about this all wrong. Extremely open to suggestions in general to make things better overall.
Any thoughts on why it would only return those four?? Before the front matter date name change it returned all of them. I can’t possibly think of why that would happen. The .md files are generated from a CMS using a script, so they are all structured identically.
Edit:
I changed it back to “article_date” in the front matter, and changed all corresponding code, and it’s loading all news items again. I am so confused.