From a45856d7884fedd3a3bd6b80489c206c75427112 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 27 Dec 2021 17:53:33 -0500 Subject: [PATCH] fix last modified not working for capitalized pages --- content/notes/troubleshooting.md | 11 +++++++++++ layouts/_default/section.html | 4 ++-- layouts/_default/single.html | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/content/notes/troubleshooting.md b/content/notes/troubleshooting.md index b6b7df3..0330fed 100644 --- a/content/notes/troubleshooting.md +++ b/content/notes/troubleshooting.md @@ -3,6 +3,17 @@ title: "Troubleshooting and FAQ" --- ## Common Pitfalls +### Some of my pages have 'January 1, 0001' as the last modified date +This is a problem caused by `git` treating files as case-insensitive by default and some of your posts probably have capitalized file names. You can turn this off in your Quartz by running this command. + +```shell +# in the root of your Quartz (same folder as config.toml) +git config core.ignorecase true + +# or globally (not recommended) +git config --global core.ignorecase true +``` + ### Can I publish only a subset of my pages? Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore%20notes.md). diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 8845fc5..286eb02 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -15,7 +15,7 @@

All {{.Title}}