Use template to get dir?

Is there something like {{.Doc.title}} that prints the path, say index.html is in /home/onodera/media, it will print media. I already tried .location, .loc, .path, .dir, etc., none work.

There isn’t one to do this, currently.

I’m a bit busy to try this right now but what if you did something like {{.Root}}?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.