I’ve added basic pagination to my jekyll site and it seems to work well for page 1 where the site path has not changed. But going to page 2 where the path is now http://localhost:4000/page2/ causes all thumbnail imgs to not be found because the imgs are all set in the front matter like: image: assets/img/DCM_post_19.jpg and not /page2/assets/img/DCM_post_19.jpg' so none of the image thumbnails are displaying properly after the first page.
How can this be fixed because I cannot create that directory structure cause I could never know what imgs belong on what page permanently.
@MichaelCurrin Ah thank you Michael. I will familiarize myself with that concept. It fixed the issue.
One other problem came up though during implementation of pagination. I have a highlighted post that appears first before all other blog posts in a larger, wider thumbnail. But now it gets moved over to page 3 of pagination rather than staying on the homepage.
My index.html looks like this (only part relevant to highlighted post is shown):