I have two sections on the blog's homepage, one with the highlights of the last 3 posts made, and another with the other posts, being shown every 6 posts.
I managed to remove the last three posts made from this second section, so they wouldn't be repeated. The problem is that it pulls out 3 posts on every page. I tried to create an IF using the home url, but when I test the condition in the console it gives true, when I try to apply it in this code, it only runs the ELSE.
I do not have an piece example code, but my first thoughts are collecting the post ID's that you want to show, put them in an array certain array for each section, make sure it only contains unique values and check them agaisnt an other array for duplicate ID's.