I'm building a website in Jekyll. To remove html extension in posts I added the following to _config.yml
permalink: /kb/:title
To remove html extension from pages, I created folders for each page, and placed an index.html file in each page folder.
Now the posts and pages work without html extension, but when I link to a page with page.url it returns the whole link (/kb/index.html) instead of just /kb.
What variable can I use to link to a page without html extension?