Skip to content

Adjust infinite scroll selector to target article.post-card#763

Merged
JohnONolan merged 1 commit into
mainfrom
fix-tag-archive-duplicate-headers
Mar 11, 2021
Merged

Adjust infinite scroll selector to target article.post-card#763
JohnONolan merged 1 commit into
mainfrom
fix-tag-archive-duplicate-headers

Conversation

@PaulAdamDavis

Copy link
Copy Markdown
Member

The tag archive header shares the same classes as post cards, but have different elements. When infinite scroll kicks in, it also appends the header again, as the JS selector was a bit greedy, selecting more than it should.

This changes the selector to target article.post-card, which ignores header.post-card

Before:

1615478606642

After:

1615478658870

The tag archive header shares the same classes as post cards, but have different elements.

This changes the selector to target article.post-card, which ignores header.post-card
@JohnONolan JohnONolan merged commit b927cf6 into main Mar 11, 2021
@JohnONolan JohnONolan deleted the fix-tag-archive-duplicate-headers branch March 11, 2021 18:33
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