howdy folks
first time here, but long time Jekyll user [still on version 3.8]
there is this problem I’ve been meaning to fix or solve, searched for a long time & still have not found anything. I feel I’m close, but my tests keep me at a distance to get the answer
so I have a for loop
that shows all my posts, great, that works fine.
but I have a bigger post at the top, another for loop
going thru the same posts, but limiting it to 1. this is basically the newest post people come to, again, works fine
the only problem is with the other posts. I can’t seem to remove the [newest] post that is being used as the newest post for the top, the one thats larger
I have tried offset
, with both positive number & negative [just to test if it did work, it didn’t] as well as sort
& the such, plus reverse etc. these do work to a point, but I cant seem to remove the newest post from the for loop
this is something of what ive worked with. though have put back things just for the sake of showing what I have been trying
{% assign sorted_music = site.music | sort:'order' %}
{% for page in sorted_music reversed %}
// stuff in here
{% endfor %}
these are dated & are sorted with them. but getting that first post removed is hard. I can do the last easily with offset
, but the other way around is a bit of a head scratch & not seen anyone else ask it, from what I have seen
would be great if someone could help, or point me to somewhere that has the answer
thanks again
x
Lew