I am building a simple HTML website using the static content generator Jekyll ( [login to view URL] ) . It's a simple HTML site but I want to add some liquid code to generate the correct list of pages / posts.
I need someone who knows Liquid (the code language for jekyll) well so they can help me add the correct code on the website.
I want to generate the list of pages (not posts) that have the same variable as the current page where this will be generated (minus the current page).
Example.
I created a service page called "Body"
I created 3 other pages called "Body 1", "Body 2" and "Body 3"
To all these 4 pages I added the following custom variable...
---
Service: Body
---
When I land on the page "Body", I would like to see a list of all the pages that have the same variable of the "current page".
The current page in this case would be "Body" which has the variable "Service: Body" .
In this page I would like to see a list of the other pages that have the same variable "Service: Body".
In this case the list would be: "Body 1", "Body 2" and "Body 3" ... Notice that I would like the code not to display in this list the "current" page which is "Body", since we're already on it.
The list should show the title of the page and the title should link it's url.