.GitInfo is <nil>

I have gone through documentation and searched for “Gitinfo”, “lastmod” on support group. I didn’t figure out what’s wrong with the code. I really appreciate if someone can answer/guide me. Below is the repo structure. I am trying to use gitinfo in baseof.html.

My content comes from another git submodule. My use-case is to display “lastmodified” date in all content files.

I enableGitInfo=true in config.toml file. My GitInfo is nil. Lastmod shows page created date. I actually need modified date. I can provide if any additional information needed. Thanks.

Your code looks fine to me. But the way I understand what I found on GitHub, is that this feature isn’t supported yet: