shou2017.com
JP

Automatically Managing Last Updated Date in Hugo with Git

Wed Mar 21, 2018
Sat Aug 10, 2024

In Hugo, you can automatically add the last updated date to articles by simply adding enableGitInfo = true to config.toml and building the site.

# config.toml

baseURL = "https://shou2017.com"
title = "My Blog"
enableRobotsTXT = true
enableEmoji = true
enableGitInfo = true # Automatically fetch the last updated date from Git history
theme = "hugo-theme-even"
See Also