[SOLVED] Linking posts and data files with .File.LogicalName broken with Page Bundle


Since Page Bundle has arrived my comments function on my blog is dead.

The system uses yaml files in data folder with the same name as blog posts to uses them.
{{ with (index .Site.Data.comments (substr $.Page.Dir 0 -1)) }}

However Page Bundle introduced a new way of organization and from now .File.LogicalName shows index.md

Do you know a way to continue using my system or I have to change things in order to work ?

EDIT: Okay, I found the solution. I just have to play with substr $.Page.Dir 0 -1 and it works now.