Last modified date for posts

Hello!

Please, let me ask one question. Before I use Jekyll for my static sites.

I want to create SEO Niche Site using Hugo. And can I display the last modified date for my posts?

It’s needed for SEO. The freshness factor is very important for Google SEO. Also I need to display last-modified for Schema.org markup.

In Jekyll, I’m using a last-modified plugin: https://github.com/gjtorikian/jekyll-last-modified-at. Im research any solutions for Hugo, but I can’t find anything.

I’ve not done this, but could you use the meta data from git?

Or do it manually, but setting the last modified date in front matter?

Thank you very much for the answer!

I will test .Lastmod function.

Setting last modified date in frontmatter each time, when post was updated - its very not convenient)