Category listing on blog home page not linking to all posts in a category #2352
-
I am converting my blog fharrell.com to Quarto. The new test site is https://hbiostat.org/blog . My problem is that on the home page, even though I see correct category counts, linking to one of the categories does not pop up the entire set of posts that have that category; only a subset of articles is shown. Here's
And here is
Most of my articles have headers like this one:
I created one post that uses the "one line per category" form for categories and it did not result in that post being linked from the home categories page either. Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I don't fully understand why this is happening, but I have at least one clue. The listing filtering / sorting is implemented on the client side (javascript) by literally reading the HTML structure and attributes. When I look at this page: https://hbiostat.org/blog/post/#category= I can see that something is definitely a little funky with the posts starting at 'Assessing the Proportional Odds Assumption...'. It seems like somehow we've produced malformed HTML, and as a result the dynamic listing filtering / sorting isn't actually seeing any of the items on the page past that item. I'm not 100% sure how this came to be - if you happen to have any clues about something on that page in particular, it would be pretty helpful (perhaps we're letting something through that we shouldn't be or we're creating invalid HTML for listings in some other way)? |
Beta Was this translation helpful? Give feedback.
-
Glad to help exercise the system! I renamed that post's index.qmd to I'm looking closely at the script now to see if there is anything different about it when compared to the other posts. At present I don't see anything weird. There is an image inclusion near the top:
|
Beta Was this translation helpful? Give feedback.
I don't fully understand why this is happening, but I have at least one clue. The listing filtering / sorting is implemented on the client side (javascript) by literally reading the HTML structure and attributes. When I look at this page:
https://hbiostat.org/blog/post/#category=
I can see that something is definitely a little funky with the posts starting at 'Assessing the Proportional Odds Assumption...'. It seems like somehow we've produced malformed HTML, and as a result the dynamic listing filtering / sorting isn't actually seeing any of the items on the page past that item.
I'm not 100% sure how this came to be - if you happen to have any clues about something on that page in partic…