CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
305 stars 105 forks source link

How can I use file modification time as the lastMod time? #50

Closed Farb closed 2 months ago

Farb commented 2 months ago

Now , I wrote lastmod: ['lastmod', ':git', 'date', 'publishDate'] in one index.md,then all the last modification times showed correctly.

I think the config should be put in the config.toml file . But I did not find the key in the docs.

I don't know how to do this.

Farb commented 2 months ago

I have done this by using enableGitInfo = true in the config.toml