fix last modified not working for capitalized pages
This commit is contained in:
parent
dbe9b338cc
commit
a45856d788
@ -3,6 +3,17 @@ title: "Troubleshooting and FAQ"
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Common Pitfalls
|
## 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?
|
### 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).
|
Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore%20notes.md).
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<article>
|
<article>
|
||||||
<h1>All {{.Title}}</h1>
|
<h1>All {{.Title}}</h1>
|
||||||
<ul class="section-ul">
|
<ul class="section-ul">
|
||||||
{{- range .Pages.ByLastmod -}}
|
{{- range .Pages.ByLastmod.Reverse -}}
|
||||||
<li class="section-li">
|
<li class="section-li">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div class="desc">
|
<div class="desc">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<p>{{- .Summary -}}{{if .Truncated}}...{{end}}</p>
|
<p>{{- .Summary -}}{{if .Truncated}}...{{end}}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="meta">
|
<p class="meta">
|
||||||
{{ .ReadingTime }} minute read, Last updated {{ .Lastmod.Format "January 2, 2006" }}
|
{{ .ReadingTime }} minute read. Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<article>
|
<article>
|
||||||
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
|
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
|
||||||
<p class="meta">
|
<p class="meta">
|
||||||
Last updated {{ .Lastmod.Format "January 2, 2006" }}
|
Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}
|
||||||
</p>
|
</p>
|
||||||
{{if $.Site.Data.config.enableToc}}
|
{{if $.Site.Data.config.enableToc}}
|
||||||
<aside class="mainTOC">
|
<aside class="mainTOC">
|
||||||
|
Loading…
Reference in New Issue
Block a user