LoginSignup
0
0

More than 1 year has passed since last update.

Hugo の {{ .Lastmod }} が 0001/01/01 になるときの解決策

Posted at

直すのに半日かかりました。

原因

"Foo/_index.md""foo/_index.md" にリネームした後に、Gitでは "Foo/_index.md" の方でコミットが進んでしまったため、Hugoが参照する "foo/_index.md" のコミット履歴がゼロになっていました。

$ git log [ファイルパス]

で問題のファイルにコミット履歴があるか調べるといいと思います。

Git と MacOS の大文字小文字の区別するしないが原因だと思うので、下手にディレクトリの大文字小文字を変更しないようにしようと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0