Closed 117503445 closed 1 month ago
https://fixit.lruihao.cn/zh-cn/documentation/content-management/introduction 提到
date: 这篇文章创建的日期时间它通常是从文章的前置参数中的 date 字段获取的,但是也可以在 主题配置 中设置
但我在主题配置中没有找到相关设置。
我的期望是当文章的前置参数没有 date 时,读取 git 中文章文件的最后修改时间作为日期。
https://github.com/timvink/mkdocs-git-revision-date-localized-plugin
理论上你可以设置 frontmatter.toml 来实现。
date = [":git", "date"]
另外,这是属于hugo的设计,主题无法干预。
Describe the feature you want 描述你的功能需求
https://fixit.lruihao.cn/zh-cn/documentation/content-management/introduction 提到
但我在主题配置中没有找到相关设置。
我的期望是当文章的前置参数没有 date 时,读取 git 中文章文件的最后修改时间作为日期。
Useful reference 有价值的参考
https://github.com/timvink/mkdocs-git-revision-date-localized-plugin