<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>故障排查 on 数字花园 | Mlosun.com</title><link>https://mlosun.com/tags/%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5/</link><description>Recent content in 故障排查 on 数字花园 | Mlosun.com</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>mlosun@qq.com (mlosun)</managingEditor><webMaster>mlosun@qq.com (mlosun)</webMaster><copyright>© 数字花园 | Mlosun.com</copyright><lastBuildDate>Sat, 29 Aug 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://mlosun.com/tags/%E6%95%85%E9%9A%9C%E6%8E%92%E6%9F%A5/index.xml" rel="self" type="application/rss+xml"/><item><title>修复 Git 提交时间无法显示</title><link>https://mlosun.com/tech/others/%E4%BF%AE%E5%A4%8D-git-%E6%8F%90%E4%BA%A4%E6%97%B6%E9%97%B4%E6%97%A0%E6%B3%95%E6%98%BE%E7%A4%BA/</link><pubDate>Sat, 11 Jul 2026 00:00:00 +0800</pubDate><author>mlosun@qq.com (mlosun)</author><guid>https://mlosun.com/tech/others/%E4%BF%AE%E5%A4%8D-git-%E6%8F%90%E4%BA%A4%E6%97%B6%E9%97%B4%E6%97%A0%E6%B3%95%E6%98%BE%E7%A4%BA/</guid><description>&lt;h2 id="问题现象"&gt;问题现象&#10;&lt;/h2&gt;&#10;&lt;p&gt;文章页面底部的&amp;quot;最后更新&amp;quot;时间始终不显示，检查 Hugo 模板发现 &lt;code&gt;.GitInfo&lt;/code&gt; 和 &lt;code&gt;.Lastmod&lt;/code&gt; 均为空值。&lt;/p&gt;&#10;&lt;h2 id="原因"&gt;原因&#10;&lt;/h2&gt;&#10;&lt;p&gt;当文件路径包含中文等非 ASCII 字符时（如 &lt;code&gt;content/docs/实践笔记/Docker 重启策略详解.md&lt;/code&gt;），Git 默认会对路径做转义处理，导致 Hugo 的 Git 集成无法正确匹配文件路径，&lt;code&gt;.GitInfo&lt;/code&gt; 返回 nil，&lt;code&gt;.Lastmod&lt;/code&gt; 随之失效。&lt;/p&gt;</description></item></channel></rss>