Hi there,
I am using the .RegularPages.Related
to list all the pages in content/vegetables/
It list everything including the current page I am on, I cannot find a way to exclude the current page from the list
Any ideas on how to use {{ $related := .RegularPages.Related . }}
while not listing the current page you are on
for example I have list of pages at: example.com/vegetables/
- Apple
- Banana
- Peach
when I click a page and visit example.com/vegetables/apple/ I see list of related pages
- Apple
- Banana
- Peach
Since I am already on the page example.com/vegetables/apple/ how can I exclude that from the list of related pages shown
Thanks for taking the time